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-image-slider: support "vertical" case #18634

Open
aghassemi opened this issue Oct 9, 2018 · 11 comments
Open

amp-image-slider: support "vertical" case #18634

aghassemi opened this issue Oct 9, 2018 · 11 comments

Comments

@aghassemi
Copy link
Contributor

No description provided.

@nainar
Copy link
Contributor

nainar commented Oct 9, 2018

Waiting on confirmation on internal channels regarding usecases here.

@aghassemi
Copy link
Contributor Author

Legit use-case: https://www.kqed.org/science/1934405/see-the-camp-fire-smoke-from-space?linkId=100000004081074

Still don't like the fact that it messes up the scrolling but definitely a vertical slider makes more sense here than horizontal.

@TWsky
Copy link

TWsky commented Nov 21, 2018

Update another use-case here which my partner are just asking for it
screen shot 2018-11-21 at 5 58 35 pm
(origin design page)

Guessing it won't be released in the near sprint, so I've thought of a work-around with using a div to wrapper the whole amp-image-slider, and make that div do the rotation.

#rotated {
   transform: rotate(90deg);
}
<div id="rotated">
    <amp-image-slider width="300" height="200" layout="responsive">
    <amp-img
      src="/img/canoe_900x600_blur.jpg"
      alt="A blurry image about canoeing"
      layout="fill"></amp-img>
    <amp-img
      src="/img/canoe_900x600.jpg"
      alt="An image about canoeing"
      layout="fill"></amp-img>
    </amp-image-slider>
  </div>

The main problem is the scroll gesture is still horizontal, guessing it's due to the implementation under amp-image-slider. Would also happy to hear if there is a better work-around.

@aghassemi
Copy link
Contributor Author

@TWsky can't think a good workaround, really needs to be in the component itself.

@nainar I think P1/P2 makes sense for this since component is new (so in post-launch support mode) and use-cases for this has come up.

@nainar
Copy link
Contributor

nainar commented Dec 1, 2018

We should constrain the maximum dimensions that the image-slider can take up, to ensure that is enevr the full viewport allowing us to at least try to ensure that the user never ends up in the bad case.

Also best way forward is to probably add an attribute on the image slider called orientation.

@cathyxz

@cathyxz cathyxz self-assigned this Dec 1, 2018
@cathyxz
Copy link
Contributor

cathyxz commented Dec 1, 2018

Do we have a project for the next fixit yet?

@nainar
Copy link
Contributor

nainar commented Dec 7, 2018

@westonruter
Copy link
Member

A new Image Compare block in the popular Jetpack plugin for WordPress has an option for vertical orientation which is currently blocked on AMP pages because the amp-image-slider component only supports horizontal. See Automattic/jetpack#15598.

@stale
Copy link

stale bot commented Dec 22, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.

@stale stale bot added the Stale Inactive for one year or more label Dec 22, 2021
@westonruter
Copy link
Member

This is still needed.

@stale stale bot removed the Stale Inactive for one year or more label Dec 22, 2021
@stale
Copy link

stale bot commented Dec 24, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.

@stale stale bot added the Stale Inactive for one year or more label Dec 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants