Kutunun üzerine gelindiğinde hem metin hem de arka planda çalışmak için geçiş efektini yapmaya çalışıyorum ama şu ana kadar elde ettiğim sonuç iki ayrı etki. kutuyu tuttuğumda bg geçişi gayet iyi çalışıyor ama metnin etkisi sadece metnin kendisinin üzerine geldiğimde oluyor. Tüm kutunun içinde gezinip metni de taşımanız gerekmediğinde renk değişimini uygulamak istiyorum. Siyahdan beyaza değiştirmek için bG rengine ve beyazdan siyaha dönüşecek Başlığa ihtiyacım var!Arka plan üzerinde css geçiş efektleri VE üzerine gelin metin
benim css böyle
.stylish-popular-widget
{
\t height: 150px;
\t position: relative;
\t width: 100%;
\t
}
.stylish-popular-widget img
{
\t height: 150px;
\t max-width: 100%;
}
.stylish-popular-widget .meta-text
{
\t background: rgba(0,0,0,.3);
\t bottom: 0;
\t top: 65%; /*adjust BG start position*/
\t left: 0;
\t right: 0;
\t position: absolute;
\t text-align: left;
\t padding-left: 10px;
\t moz-transition: 1s;
\t ms-transition: 1s;
\t o-transition: 1s;
\t transition: 1s;
\t webkit-transition: 1s;
}
\t
}
.stylish-popular-widget .meta-text h3
{
\t color: #FF0000 !important;
\t
}
.stylish-popular-widget .meta-text h3 a
{
\t color: #fff !important;
\t font-size: 25px;
\t letter-spacing: 1px;
\t
\t
}
.stylish-popular-widget .meta-text h3 a:hover
{
\t text-decoration: none;
\t color: #000 !important;
\t
}
.stylish-popular-widget .meta-text h3 :hover
{
\t text-decoration: none;
\t color: #000 !important;
\t
}
.stylish-popular-widget .meta-text span.date
{
\t color: rgba(59,59,59,1);
\t font-size: 11px;
\t letter-spacing: 1px;
\t padding-top: 30px;
\t
}
.stylish-popular-widget:hover > .meta-text
{
\t background: rgba(255,255,255,.8); \t \t
\t top:inherit;
top: 0;
\t \t
}
\t \t \t \t <?php ?>
\t \t \t \t
\t \t \t \t <div class="stylish-popular-widget">
\t \t \t \t \t <a href="<?php echo get_permalink() ?>" rel="bookmark"><?php the_post_thumbnail('popular_posts_img'); ?>
\t \t \t \t \t <div class="meta-text">
\t \t \t \t \t \t <h3><a href="<?php echo get_permalink() ?>">
\t \t \t \t \t \t TEST</h3>
\t \t \t \t \t \t <span class="date">thstrhsthths</span></a>
\t \t \t \t \t </div>
\t \t \t \t \t </a>
\t \t \t \t </div>
\t \t \t \t
\t \t \t <?php
\t \t
Her neyse, '' hover '' (a) etiketi yerine '' wip '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' yerine '' '' '' '' '' '' '' '' '' '' '' '' '' 'ile değiştirmek zorundasınız. ve sonra ona boyutlar verebilirsin. – Narxx
Cevabınız için çok teşekkür ederim! Kodlamada yeni ve tüm sorularım ve hatalarım için üzgünüm ... Uygulanan bir çözümle bana bir örnek verebilir misiniz? –
Umarım bu yardımcı olur: https://jsfiddle.net/msyLj79n/ sadece bir örnek, ancak bunu yapmanın birçok farklı yolu var. – Narxx