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 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

Thanks.

1 Answer

Miguel Guzman
seal-mask
.a{fill-rule:evenodd;}techdegree
Miguel Guzman
Front End Web Development Techdegree Student 10,025 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.