pull-element
pull-element copied to clipboard
multiple targets
when using the target selector as ('.test) only returns the first target selector. See https://output.jsbin.com/tozewab
Expected behavior should be to return an array of all selectors.
Here is a workaround use nature javascript.
const elems = document.querySelectorAll('.test')
const pulls = Array.from(elems).map(elem => {
let instance = new PullElement({ ...options, target: elem })
instance.init()
return instance
}
Thanks! Works perfectly!