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

Bridget Wilson
Bridget Wilson
8,006 Points

CSS Animation ability?

Hi All, I'm working on a project to combine what I've learned so far with treehouse and I have an idea for it that I'm not 100% sure is possible. I remember in one of the css videos (in the animation part I'm pretty sure) Guil put two images into the same place one acting as the front and one acting as the back. I'd like to use an if/else statement and Math.random to use a similar animation but randomize the side of the picture that shows; only I can't remember if the animation had the ability to show the back image instead of the front image or if it only displayed while the animation was moving. Does anyone remember which video this was in so I can review it? Does anyone know if this would even work? For what its worth my plan is something like if Math.random = >.5 show side a and if <.5 show side b. Thanks in advance for any help/suggestions.

2 Answers

It is in css foundations. I think it is 3d transformations but I'm not sure. It's towards the end

Bridget Wilson
Bridget Wilson
8,006 Points

Hi Carman, You were right, it was the 3d transforms, no wonder I couldn't find it- I was looking in animations. Thanks for pointing me in the right direction!

No problem :)