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

CSS CSS Transitions and Transforms Getting Started with CSS Transforms Creating a Slide Transition

Learning coding
seal-mask
.a{fill-rule:evenodd;}techdegree
Learning coding
Front End Web Development Techdegree Student 9,937 Points

How do I complete creating the slide transition?

This is the code in css

.slide .photo-overlay, .slide img { transition: transform .6s ease-out; }

.slide .photo-overlay { transform: translateX(-100%); } .slide:hover .photo-overlay { transform: translateX(0);

You can find the html code at the end in the index.html page https://w.trhou.se/t1q9ygnkwh

I think that I have to create a photo overlayer first. Like the blue one in the video? What's the best way to do that, or is there another step to take to complete the slide transition?

http://codepen.io/mehra_as/pen/rxrBMv check my pen may be it will help you.

1 Answer

Learning coding
seal-mask
.a{fill-rule:evenodd;}techdegree
Learning coding
Front End Web Development Techdegree Student 9,937 Points

I just copy-pasted, but this is the result I am looking for: That when a user hovers over the slide container the title, description and button will slide in from the left while the image slides out of view from left to right. As in the video at 0.43 https://teamtreehouse.com/library/css-transitions-and-transforms/getting-started-with-css-transforms/creating-a-slide-transition.