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
This should be an opt-in feature that is expected to be flagged on every instance of scroll-scene that wants them to activate.
<scroll-sceneprogress></scroll-scene><!-- may be better to use data attributes --><scroll-scenedata-progress></scroll-scene>
This flag would cause an instance of scroll-scene to interface with the global observer and set up a scroll listener for calculating scroll depth for that element once it enters the view and removes the listener when it exits the view.
The user would still be expected to set up their own listener for this event to react to it.
document.addEventListener('scroll-scene-progress',({ detail })=>{constelement=detail.element;constprogress=detail.progress;// do what you need to do});
The text was updated successfully, but these errors were encountered:
This should be an opt-in feature that is expected to be flagged on every instance of
scroll-scene
that wants them to activate.This flag would cause an instance of
scroll-scene
to interface with the globalobserver
and set up ascroll
listener for calculating scroll depth for that element once itenter
s the view and removes the listener when itexit
s the view.The user would still be expected to set up their own listener for this event to react to it.
The text was updated successfully, but these errors were encountered: