-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add once
option to amp-position-observer
#11047
Comments
This issue seems to be in Pending Triage for awhile. @aghassemi Please triage this to an appropriate milestone. |
would really be useful, anyone found any work arounds ? |
@mustafaj17 are you using it for scroll-bound animations or just triggering animations when something comes into the view? If the latter, you can work around this by not providing a first keyframe for your animation, this way the second time it plays, it would try to go from the current state (which would be the last keyframe of previous run) to last keyframe again (which would be the same) and effectively it won't do anything. |
There are cases where we want amp-position-observer to only run once (e.g. fade in images). Support that option.
The text was updated successfully, but these errors were encountered: