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

HTML

SVG Animation not working in IE9+

Took the animate svg course and loved it - tried my own version and got it working. Except for in IE9+

http://earl.st/clients/test3/

http://earl.st/clients/test3/animate.css

Any advice would be massively appreciated

3 Answers

CSS animation is unfortunately only supported in Internet Explorer Version 10+.

http://caniuse.com/#feat=css-animation

Luckily Internet Explorer 9 is the last version of Internet Explorer that supported conditional comments so you can put a Javascript fall back in for Internet Explorer 9. By doing the following for example:

<!--[if lte IE 9]>
    <script src="animation-ie9-support.js"></script>
<![endif]-->

(You will need to create a script in Javascript that can replicate the CSS animations).

It may be an idea to look into the Javascript Library Modernizr as there are some simpler solutions provided in the library for falling back on all browsers that do not support CSS animations rather then directly targeting each browser individually.

https://modernizr.com/

Thanks so much Alex - I will look into a conditional fallback for IE... sure it wont be the last time!

Missed the links as well mate - thank you again for the time you have put into this. Have saved me so much pain as a result!