amp-by-example icon indicating copy to clipboard operation
amp-by-example copied to clipboard

Hover zoom

Open lswang1618 opened this issue 9 years ago • 5 comments

Such as in this page https://www.williams-sonoma.com/products/global-classic-7-piece-wood-block-set/?pkey=cknife-sets&isx=0.0.0

Not relevant for mobile pages, but more for canonical amp on desktop

Can be done with css :hover + sibling selectors + css background-position

lswang1618 avatar Oct 17 '17 22:10 lswang1618

me and @juliantoledo tried this in hover zoom but we don't know how to track the position of the mouse pointer to move the zoomed image. @aghassemi do you know if that's possible on css or do we need amp-position-observer to support it?

kul3r4 avatar Nov 24 '17 15:11 kul3r4

@kul3r4 Can't think of anyway this can be possible in AMP with existing components. Would make a nice feature request though.

aghassemi avatar Nov 27 '17 22:11 aghassemi

@ericlindley-g is there anything similar to this in the roadmap already?

kul3r4 avatar Nov 28 '17 13:11 kul3r4

It's been discussed, but not on the roadmap yet as far as I know—would be great to add as feature request in the amphtml repo!

ericlindley-g avatar Nov 28 '17 13:11 ericlindley-g

Done here

kul3r4 avatar Nov 29 '17 16:11 kul3r4