foundation / motion-ui

💎 The powerful Sass library for creating CSS transitions and animations
https://zurb.com/playground/motion-ui
MIT License
1.16k stars 174 forks source link

MotionUI without jQuery #149

Open ameotoko opened 10 months ago

ameotoko commented 10 months ago

This is my exercise at removing jQuery as a dependency. I plan to do it on Foundation for Sites as well, but have never tried something like this before, so I decided to try on MotionUI first, with less codebase.

This PR adds a standalone version motion-ui-standalone.js which does not require jQuery to work. You can drop it in your page via script tag instead of official motion-ui.js and delete jQuery. A copy of a test page has also been added to the repo that shows this.