Replies: 1 comment
-
Hi please read API documentation addListener addListener Params types ( Typescript definition ) type ScrollStatus = {
// equal to `scrollbar.offset`
offset: {
x: number,
y: number,
},
// equal to `scrollbar.limit`
limit: {
x: number,
y: number,
},
}; scrollbar.addListener(( { offset, limit } ) => {
// do your logic here
var targetOffset = element.getBoundingClientRect().top
if( offset.y >= targetOffset ) { }
else { }
}); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
can you please help me and show me how i can animate elements with a specific class?
Usually i use this code inside $(window).on('scroll'):
Should i use isVisible right?
How can i achieve the same result with it?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions