bespokejs / bespoke

DIY Presentation Micro-Framework
http://markdalgleish.com/projects/bespoke.js/
MIT License
4.69k stars 442 forks source link

Javascript animation & browser support... #27

Closed WideCircle closed 11 years ago

WideCircle commented 11 years ago

Hi there! I'm really curious on this framework. I can't make the example page work in IE9 and OP12. Does this mean that Bespoke itself actually work but the CSS used in the example page isn't supported in these browsers?

I'm also curious if you can & if you can how to use javascript for animation instead of CSS-animation. I've had a look in the documentation & read about events & that looks interesting but haven't had the chance to try it out...

Best, Niklas

markdalgleish commented 11 years ago

Bespoke.js itself is completely unopinionated about animation as it simply changes classes on elements, but this behaviour certainly lends itself to CSS transitions. What you said is correct, that Bespoke.js can work in older browsers, but the CSS I've used may not. In your own presentations, you can obviously choose to target older browsers.

I haven't given JavaScript animations much thought, and I would strongly recommend not using them. A better idea would be to allow for graceful degradation in browsers without transition support.