NV / flying-focus

UI concept

Home Page:http://n12v.com/focus-transition/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Breaking in IE8

notslang opened this issue · comments

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).

Thank you. Try it now.