Skip to content
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] Add object-fit to full bleed animated images #18244

Merged
merged 1 commit into from
Sep 20, 2018

Conversation

Enriqe
Copy link
Contributor

@Enriqe Enriqe commented Sep 20, 2018

Fixes #18090

Since images animated with full-bleed-animations presets like zoom-in or pan-up get the styles from i-amphtml-story-grid-template-fill removed for custom sizing, they weren't receiving the object-fit: cover property from the amp-story-user-overridable.css.

This PR makes sure images with full-bleed animations receive the object-fit: cover property by using the .i-amphtml-story-grid-template-with-full-bleed-animation. This class gets applied to a direct child of an amp-story-grid-layer with the fill template where the child defines a full-bleed animation, like zoom-in.

Before:
image

After:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants