3 Commits

Author SHA1 Message Date
Alex Fox
5d6d4c3772 Update README.md 2025-05-21 07:07:54 +01:00
Alex Fox
3f3284b3a5 Merge pull request #163 from PatrickDesign/patrickW/bugfix--allow-empty-options-within-addElements
[BUGFIX] Continue to allow empty options to be passed to `addElements`
2021-10-25 21:06:02 +01:00
Patrick w
81a2232ba8 Continue to allow empty options to be passed 2021-10-21 12:06:57 -07:00
2 changed files with 4 additions and 1 deletions

View File

@@ -1,3 +1,6 @@
# Archive Notice
Due to other commitments I am unable to continue maintaining this project. As far as I know it still works, but there are likely better, more up to date alterantives out there.
# lax.js
Simple & lightweight (<4kb gzipped) vanilla JavaScript library to create smooth & beautiful animations when you scroll.

View File

@@ -585,7 +585,7 @@
})
}
addElements = (selector, transforms, options) => {
addElements = (selector, transforms, options = {}) => {
const domElements = options.domElements || document.querySelectorAll(selector)
domElements.forEach((domElement, i) => {