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

Suleiman Leadbitter
15,805 PointsQuestion and Help needed regarding SVG animation on site
Hi,
I'll pulling my hair out here repeatedly going over the code so I'm now at the stage of asking for help. Sorry to be a pain.
I'm designing a page and wanted the logo that is an SVG file to be animated. No problem there, I have it working in Codepen but when the exact code is used in my HTML file it doesn't work.
I have a feeling this is something simple but I can't seem to fix it. Any help would be high;y appreciated.
1 Answer

Suleiman Leadbitter
15,805 PointsI fixed it, it was just a simple case of adding the autoprefixer to the animation code.
.logoanimation {
stroke-dashoffset: 1000;
stroke-width: 1;
animation-delay: 2s;
animation: draw 5s linear;
animation-fill-mode: forwards;
}
Was changed to:
.logoanimation {
stroke-dashoffset: 1000;
stroke-width: 1;
-webkit-animation-delay: 2s;
animation-delay: 2s;
-webkit-animation: draw 5s linear;
animation: draw 5s linear;
-webkit-animation-fill-mode: forwards;
animation-fill-mode: forwards;
}