Closed dwd0tcom closed 4 years ago
Wow, this was easy.
I created a loop for each element and used direct: true
on each.
Pretty easy. Love the work of you!
document.querySelectorAll('.deckkraft').forEach((elem) => {
basicScroll.create({
elem: elem,
from: 'top-middle',
to: 'middle-top',
direct: true,
props: {
'--o': {
from: .01,
to: .99
}
}
}).start()
});
Hey everybody,
what a great library! 👍 I'm building a pretty long website where it should animate e.g. an image again when it comes inside the viewport.
I have this HTML setup
So what I tried to use
direct: true
, but this did not work. So my next guess is the callback feature but I can't figure out how this works 😢This is one of my instances
Which way would you suggest?