Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

CSS Animating SVG with CSS Keyframe and Line Drawing Animations Animating stroke-dasharray and stroke-dashoffset

Ross Wilkinson
Ross Wilkinson
5,430 Points

Animation direction incorrect and fill not staying

After completely rewriting out my code and scanning it from top to bottom to work out why no animation was happening I tried changing its direction from 'forwards' to 'backwards' which 'fixed' the problem (but I would like to know why mine and Guil's differ if anyone could share that). However, once the fill animation plays it disappears, it does not stay green as in the video - the logo vanishes. Here is a link to my workspace snapshot: http://w.trhou.se/6gw8fj78cs


1 Answer

Miguel Guzman
Miguel Guzman
Front End Web Development Techdegree Student 10,013 Points

I copied your code and experienced the problem you described. I went ahead and changed both directions in the animation from backwards to forwards and it fixed the issue completely.