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

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