Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Aurelian Spodarec
10,801 PointsHover with transition
HI, if you look at this here http://ashley-bootstrap3-website-template.little-neko.com/v1.8/files/index-animated.html
and look at Breaking News, and you hvoer, you see there is a cool transition effect, how can I do it? I tried few things but didn't work.
And this is what I'm working with
<article class="col xs-1 medium-1-3 large-1-3">
<section class="news__image">
<div class="media__hover">
<div class="media__mask orange">
</div>
<div class="media__icons">
<a class="media__link" href="#">
<i class="fa fa-search" aria-hidden="true"></i>
</a>
</div>
</div>
<img src="http://ashley-bootstrap3-website-template.little-neko.com/v1.8/files/images/news/news1.jpg">
</section>
<section class="news__container orange">
<header>
<h3 class="news__title">New hair cut today</h3>
<h4 class="news__subtitle">September 12</h4>
</header>
<p>The Duchess took her choice, and was gone in a moment. 'Let's go on with the game,' the Queen said to Alice; and Alice was too much frightened to say a word, but slowly followed her back to the croquet-ground.</p>
<button href="#" class="btn btn--small">Read More</button>
</section>
</article>
Aurelian Spodarec
10,801 PointsUmm, messy code :D but i'd try to work with it . And how did you find that code? I coudn't find their transition code on their website.
I will try it soon, now i need to make a site wth SMACSS that's poerfect in coding, so i might post few questions on that :D
but thanks :D
bushaf
34,523 Pointsbushaf
34,523 Points.media_hover {overflow: hidden;} .mediamask {height: 0px;} .medialink { position: relative; top: -300px;} after this you need to place your transitions on .mediahover:hover .mediamask {height: XXpx; transition height 350ms; } and .mediahover:hover .media_link {top:0; transition: top 450ms 300ms;} respectively. I hope this works, please let me know :)