Skip to content
This repository has been archived by the owner on Mar 29, 2020. It is now read-only.

Added stagger functionality #76

Closed
wants to merge 2 commits into from
Closed

Conversation

SaFrMo
Copy link

@SaFrMo SaFrMo commented Aug 24, 2017

inView.stagger(400);
inView('[selector]').on('enter', function(el){
    el.classList.add('sequentially-added-class');
});

Staggers the callback execution for enter and exit events by a given amount of ms. Used, for example, to sequentially fade in items as they enter the viewport.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants