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
♻️ Require trigger="visibility" to run an <amp-story-animation> effect #28257
♻️ Require trigger="visibility" to run an <amp-story-animation> effect #28257
Conversation
Can you elaborate on your plans for the |
Correct. Subanimations have no trigger at all. TBH, I don't like everything about it, but we thought that adding a The "in" is a new value, just for stories. We can instead go to "visible", which is a standard value. |
33e15a4
to
5cb9b2f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good thanks for clarifying :))
"visible"
might be easier to understand, or if we want to match the analytics events we send on page navigation for consistency, something like "story-page-visible"
.
In that case I'd vote for |
Using |
This disambiguates effect specs that trigger with page entrance versus those that are triggered by other specs (subanimations).
Note that subanimations are not currently supported, but this change prevents issues when introducing the feature.