NV / flying-focus

UI concept
http://n12v.com/focus-transition/
MIT License
443 stars 44 forks source link

Breaking in IE8 #10

Closed notslang closed 10 years ago

notslang commented 10 years ago

image

It's obviously not worth supporting IE8 since it doesn't have CSS3 transitions, but it should be noted that if this script is run in IE8, it will break when it hits addEventListener.

A good solution for sites that want to support IE8 would be for them to wrap their call to flying focus in a try/catch.

Or, if someone wants to get really fancy, adding feature detection for CSS3 transitions so that the script doesn't even run on browsers that don't support it would be awesome (assuming that all browsers that support CSS3 also support addEventListener).

NV commented 10 years ago

Thank you. Try it now.