srcset don’t work on amp caroussel
-
hey srcset don’t work for my amp page [ redundant link removed ] but work on my none-amp page [ redundant link removed ].
When i open my amp page and then my amp-img inside my amp caroussel on my mobil it’s show me my largest images instead of the smallest but when i open my non-amp page and then my amp-img inside my amp caroussel on my mobil it’s show me my smallest images.
Can you help me ?
i have put this code inside my page.<!DOCTYPE html> <html amp> <head> <script async custom-element="amp-carousel" src="https://cdn.ampproject.org/v0/amp-carousel-0.1.js"></script> <title>Hy i am AMP page</title> <meta charset="utf-8"> <script async src="https://cdn.ampproject.org/v0.js"></script> <title>Hello, AMPs</title> <link rel="canonical" href="https://e-betherm.fr"> <meta name="viewport" content="width=device-width"> <style amp-boilerplate>body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-ms-animation:-amp-start 8s steps(1,end) 0s 1 normal both;animation:-amp-start 8s steps(1,end) 0s 1 normal both}@-webkit-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-moz-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-ms-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-o-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}</style><noscript><style amp-boilerplate>body{-webkit-animation:none;-moz-animation:none;-ms-animation:none;animation:none}</style></noscript> </head> <body> <amp-carousel autoplay dealy="1500" loop layout="responsive" height="100" width="150" type="slides"> <amp-img layout="responsive" width="150" height="200" src="https://e-betherm.fr/limpaxed/2021/07/etude-Bbio-V1-5.webp" srcset="https://e-betherm.fr/limpaxed/2021/07/etude-Bbio-V1-5.webp 1000w, https://e-betherm.fr/limpaxed/2021/07/etude-Bbio-V1-5-400.webp 400w" sizes="(min-width: 100px) 75vw, 100vw"></amp-img> <amp-img layout="responsive" width="150" height="200" src="https://e-betherm.fr/limpaxed/2021/07/etude-complete-V1-4.webp" srcset="https://e-betherm.fr/limpaxed/2021/07/etude-complete-V1-4.webp 1000w, https://e-betherm.fr/limpaxed/2021/07/etude-complete-V1-4-400.webp 400w" sizes="(min-width: 100px) 75vw, 100vw"></amp-img> <amp-img layout="responsive" width="150" height="200" src="https://e-betherm.fr/limpaxed/2021/07/etude-serenite-V3-4.webp" srcset="https://e-betherm.fr/limpaxed/2021/07/etude-serenite-V3-4.webp 1000w, https://e-betherm.fr/limpaxed/2021/07/etude-serenite-V3-4-400.webp 400w" sizes="(min-width: 100px) 75vw, 100vw"></amp-img> </amp-carousel> </body> </html>
- This topic was modified 3 years, 3 months ago by .
- This topic was modified 3 years, 3 months ago by . Reason: Moved to Fixing WordPress, this is not an Developing with WordPress topic
- This topic was modified 3 years, 3 months ago by .
The page I need help with: [log in to see the link]
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘srcset don’t work on amp caroussel’ is closed to new replies.