Jump to content
Search Community

IntersectionObserver Stagger element with delay time.

aydinvivik test
Moderator Tag

Recommended Posts

Hello,

 

I use the Observer Api to animate the visibility of the posts on the viewport. I set 'itemLoad = 0' as the initial value, and I increment it every time it appears on the screen. But I have a problem ! Each item that appears on the screen increases the value of 'itemLoad'. But I want the value to increase again every time the item appears. 

 

How can I reset the delay time (itemLoad) whenever it is visible?

See the Pen OJPXBxY by vivik (@vivik) on CodePen

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...