/
githubmirror
/
amphtml
Обзор
Документация
Войти
/
githubmirror
/
amphtml
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
examples/amp-story/visual-effects.html
109 строк
6 KB
Caroline Liu
Apply lang="en" to examples/ (#34759)
10 июн 2021, 17:30
Не верифицирован
10 июн 2021, 17:30
2ee75c4
Код
Авторство
О чём код?
<!doctype html> <html ⚡ lang="en"> <head> <meta charset="utf-8"> <link rel="canonical" href="visual-effects.html"> <meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1"> <script async src="https://cdn.ampproject.org/v0.js"></script> <script async custom-element="amp-story" src="https://cdn.ampproject.org/v0/amp-story-1.0.js"></script> <style amp-custom> amp-story-page { font-family: 'Roboto', sans-serif; background: #fff; } amp-story-grid-layer { align-items: center; justify-items: center; } .img-container { position: absolute; width: 0px; height: 0px; } </style> <title>Visual Effects</title> <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-story standalone> <amp-story-page id="ken-burns-effect1"> <amp-story-grid-layer template="fill"> <div animate-in="zoom-in" animate-in-duration="30s" scale-start="1" scale-end="3" class="img-container"> <amp-img id="ken-burns-img1" src="https://picsum.photos/1600/1200?image=1077" animate-in="pan-left" animate-in-duration="30s" layout="fixed" width="1600" height="1200"> </amp-img> </div> </amp-story-grid-layer> </amp-story-page> <amp-story-page id="ken-burns-effect2"> <amp-story-grid-layer template="fill"> <div animate-in="zoom-in" animate-in-duration="5s" class="img-container"> <amp-img id="ken-burns-img2" src="https://picsum.photos/1600/1200?image=1078" animate-in="pan-right" animate-in-duration="5s" layout="fixed" width="1600" height="1200"> </amp-img> </div> <div animate-in="fade-in" animate-in-after="ken-burns-img2" animate-in-duration="1s" class="img-container"> <div animate-in="zoom-out" animate-in-duration="5s" class="img-container" animate-in-after="ken-burns-img2"> <amp-img id="ken-burns-img3" src="https://picsum.photos/1600/1200?image=1026" layout="fixed" width="1600" height="1200" animate-in="pan-down" animate-in-duration="5s" animate-in-after="ken-burns-img2"> </amp-img> </div> </div> <div animate-in="fade-in" animate-in-after="ken-burns-img3" animate-in-duration="1s" class="img-container"> <div animate-in="zoom-in" animate-in-duration="5s" class="img-container" animate-in-after="ken-burns-img3"> <amp-img id="ken-burns-img4" src="https://picsum.photos/1600/1200?image=1029" layout="fixed" width="1600" height="1200" animate-in="pan-right" animate-in-duration="5s" animate-in-after="ken-burns-img3"> </amp-img> </div> </div> <div animate-in="fade-in" animate-in-after="ken-burns-img4" animate-in-duration="1s" class="img-container"> <div animate-in="zoom-out" animate-in-duration="5s" class="img-container" animate-in-after="ken-burns-img4"> <amp-img id="ken-burns-img5" src="https://picsum.photos/1600/1200?image=1033" layout="fixed" width="1600" height="1200" animate-in="pan-up" animate-in-duration="5s" animate-in-after="ken-burns-img4"> </amp-img> </div> </div> </amp-story-grid-layer> </amp-story-page> <amp-story-page id="ken-burns-effect3"> <amp-story-grid-layer template="fill"> <div animate-in="zoom-in" animate-in-duration="30s" class="img-container"> <amp-img src="https://picsum.photos/1600/1200?image=1078" animate-in="pan-right" animate-in-duration="30s" layout="fixed" width="1600" height="1200"> </amp-img> </div> <div animate-in="fade-in" animate-in-delay="5s" animate-in-duration="1s" class="img-container"> <div animate-in="zoom-out" animate-in-duration="30s" class="img-container" animate-in-delay="5s"> <amp-img src="https://picsum.photos/1600/1200?image=1026" layout="fixed" width="1600" height="1200" animate-in="pan-up" animate-in-duration="30s" animate-in-delay="5s"> </amp-img> </div> </div> <div animate-in="fade-in" animate-in-delay="10s" animate-in-duration="1s" class="img-container"> <div animate-in="zoom-out" animate-in-duration="30s" class="img-container" animate-in-delay="10s"> <amp-img src="https://picsum.photos/1600/1200?image=1029" layout="fixed" width="1600" height="1200" animate-in="pan-right" animate-in-duration="30s" animate-in-delay="10s"> </amp-img> </div> </div> <div animate-in="fade-in" animate-in-delay="15s" animate-in-duration="1s" class="img-container"> <div animate-in="zoom-out" animate-in-duration="30s" class="img-container" animate-in-delay="15s"> <amp-img src="https://picsum.photos/1600/1200?image=1033" layout="fixed" width="1600" height="1200" animate-in="pan-left" animate-in-duration="30s" animate-in-delay="15s"> </amp-img> </div> </div> </amp-story-grid-layer> </amp-story-page> </amp-story> </body> </html>