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

nothing works

I don't know why nothing works here.

/* -------------------------- Keyframes --------------------------- */ @keyframes offset { 100% { storke-dashoffset: 0; } }

@keyframes fill-it { 100% { fill: #6fbc6d; } }

/* -------------------------- SVG Styles --------------------------- */

svg { display: block; margin: 2em auto 0; width: 40%; }

.logo { stroke: #6fbc6d; stroke-width: 2; stroke-dasharray: 810; storke-dashoffset: 810;

animation: offset 5s linear forwards, fill-it .8s 5s forwards; }

Reggie Williams
Reggie Williams
Treehouse Teacher

Hey Sadaf Partovi can you share a snapshot of the workspace you're using so others can try to run the code?

Hey Reggie, Thanks for replying. I don't know how to post a snapshot of my workspace since there is no attachment button here. However, I did copy and post my code in the comment above.

1 Answer

Reggie Williams
STAFF
Reggie Williams
Treehouse Teacher

Sadaf Partovi this workshop demonstrates snapshots which will allow you to share the complete project. It looks like you have made a common mistake and there are multiple spelling errors. Where you should have stroke-dashoffset you have storke-dashoffset . Once you've fixed this try double checking your code against the code in the video