alexfoxy / lax.js

Simple & lightweight (<4kb gzipped) vanilla JavaScript library to create smooth & beautiful animations when you scroll.
MIT License
10.43k stars 491 forks source link

Can I add DOM from jQuery #158

Closed katsar0v closed 3 years ago

katsar0v commented 3 years ago

Is your feature request related to a problem? Please describe. It would be great if I could add a dom with jQuery, e.g. $('.selector')[0] as a first parameter for lax.addElements

PatrickDesign commented 3 years ago

Seems like a good idea to me. Here's a PR if you agree @alexfoxy: https://github.com/alexfoxy/lax.js/pull/159#issue-1020369179, 🙇

alexfoxy commented 3 years ago

Fixed on dev branch, will be in an up coming release with typescript support.