You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When multiple items are suddenly made visible, it would be great to have an option that would stagger the [data-emergence=visible] change based on source order. This allows for some really appealing intro animations for sections of a site. This prevents having to hard-code transition-delay or animation-delay in the CSS, which will cause unnecessary delays if items are not made visible at the same time.
emergence.init({stagger: 100// Delay in ms between item attribute changes});
Because all items are revealed in the viewport at the same time and the stagger option is set: .scene-1 gets data-emergence=visible change right away .scene-2 gets data-emergence=visible after 100ms .scene-3 gets data-emergence=visible after 200ms
The text was updated successfully, but these errors were encountered:
When multiple items are suddenly made visible, it would be great to have an option that would stagger the
[data-emergence=visible]
change based on source order. This allows for some really appealing intro animations for sections of a site. This prevents having to hard-codetransition-delay
oranimation-delay
in the CSS, which will cause unnecessary delays if items are not made visible at the same time.For example:
JS:
Because all items are revealed in the viewport at the same time and the
stagger
option is set:.scene-1
getsdata-emergence=visible
change right away.scene-2
getsdata-emergence=visible
after 100ms.scene-3
getsdata-emergence=visible
after 200msThe text was updated successfully, but these errors were encountered: