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
✨ ♻️ [amp story] [Page attachments] Pre tap animations #34142
Conversation
Hey @gmajoulet, @newmuis, @Enriqe! These files were changed:
|
@@ -37,7 +37,7 @@ const CtaAccentElement = { | |||
* @param {!Element} element | |||
* @return {!Element} | |||
*/ | |||
export const buildOpenDefaultAttachmentElement = (element) => | |||
export const buildOldAttachmentElement = (element) => |
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.
I'm not sure 'Old' is the right name for this. Technically the old UI is still in use in the case of inline attachments that have no images.
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.
buildOpenInlineAttachmentElement
would be the codepath for with and without images with the work in this PR.
The benefit of this is that they can share structure, style and animations.
Context / fixes #33261
Animate pre-tap state of attachment CTA buttons after 1s.
The inline "no image" variation shares animation with the images version and required a structural change, which makes this a good opportunity to refactor.
win
from from node.Demo