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
Boris Kamp
16,660 PointsCSS animation question
Hi guys!
Im not that familiar with CSS animations. My client want to achieve the following result when hovering the contact button:
so to be clear:
- the square's move from left to right and vice versa
- when the square moves, the line underneath it changes color
the top image it the start state, the middle is during the effect (50%) and the bottom image is the end stage.
thanks guys!
1 Answer
Jonathan Grieve
Treehouse Moderator 91,254 PointsYou can do that with an SVG file.
So you can target the individual elements and change the individual properties to get the effects you want. You can target SVG elements in the same was as animatable CSS properties.
Check out the SVG Animation here on Treehouse for all you need to know on how to do this. :-)