/
githubmirror
/
amphtml
Обзор
Документация
Войти
/
githubmirror
/
amphtml
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
examples/article-invalid-presets.amp.html
134 строки
5 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"> <title>AMP Article with fade-in animations</title> <link rel="canonical" href="amps.html"> <meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1"> <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> <script async src="https://cdn.ampproject.org/v0.js"></script> <script async custom-element="amp-fx-collection" src="https://cdn.ampproject.org/v0/amp-fx-collection-0.1.js"></script> <style amp-custom> .spacer { margin-top: 10px; height: 70vh; width: 100%; background-image: -webkit-linear-gradient(#EEE 50%, white 50%); background-image: linear-gradient(#EEE 50%, white 50%); background-size: 100% 3em; } header { position: relative; } h1 { margin: 0px 10px; } header h1 { position: absolute; top: 20vh; padding: 5px; z-index: 1; } header h1 span, .title { background-color: black; color: white; line-height: 1.2em; } amp-img img { object-fit: cover; } .overlay-top { position: absolute; top: 0; } .overlay-container { position: relative; overflow: hidden; } main { font-family: Helvetica, sans-serif; padding: 10px; max-width: 412px; margin: auto; } a, a:visited, a:active { color: #2196F3; text-decoration: none; display: block; padding: 5px; } .overflow-window { overflow: hidden; } .overflow-window amp-img { margin-bottom: -80%; } </style> </head> <body> <main> <header> <h1> <span class="title">Lorem Ipsum Dolor Sit Lorem Ipsum<span> </h1> <amp-img height="50vh" layout="fixed-height" src="https://picsum.photos/1600/900?image=1069"></amp-img> </header> <article> <div class="spacer"></div> <div class="overflow-window"> <amp-img amp-fx="fade-in fade-in-scroll" data-duration="1000ms" layout=responsive width=900 height=1600 src="https://picsum.photos/900/1600?image=736"></amp-img> </div> <div class="spacer"></div> <div class="overflow-window"> <amp-img amp-fx="fade-in-scroll fade-in" data-duration="1000ms" layout=responsive width=900 height=1600 src="https://picsum.photos/900/1600?image=736"></amp-img> </div> <div class="spacer"></div> <div class="overflow-window"> <amp-img amp-fx="fly-in-bottom fly-in-top" data-duration="1000ms" layout=responsive width=900 height=1600 src="https://picsum.photos/900/1600?image=736"></amp-img> </div> <div class="spacer"></div> <div class="overflow-window"> <amp-img amp-fx="fly-in-top fly-in-bottom" data-duration="1000ms" layout=responsive width=900 height=1600 src="https://picsum.photos/900/1600?image=736"></amp-img> </div> <div class="spacer"></div> <div class="overflow-window"> <amp-img amp-fx="fly-in-left fly-in-right" data-duration="1000ms" layout=responsive width=900 height=1600 src="https://picsum.photos/900/1600?image=736"></amp-img> </div> <div class="spacer"></div> <div class="overflow-window"> <amp-img amp-fx="fly-in-right fly-in-left" data-duration="1000ms" layout=responsive width=900 height=1600 src="https://picsum.photos/900/1600?image=736"></amp-img> </div> <div class="spacer"></div> <div class="overflow-window"> <amp-img amp-fx="fly-in-bottom parallax" data-parallax-factor="1.3" layout=responsive width=900 height=1600 src="https://picsum.photos/900/1600?image=736"></amp-img> </div> <div class="spacer"></div> <div class="overflow-window"> <amp-img amp-fx="parallax fly-in-bottom" data-parallax-factor="1.3" layout=responsive width=900 height=1600 src="https://picsum.photos/900/1600?image=736"></amp-img> </div> <div class="spacer"></div> <div class="overflow-window"> <amp-img amp-fx="fly-in-top parallax" data-parallax-factor="1.3" layout=responsive width=900 height=1600 src="https://picsum.photos/900/1600?image=736"></amp-img> </div> <div class="spacer"></div> <div class="overflow-window"> <amp-img amp-fx="parallax fly-in-top" data-parallax-factor="1.3" layout=responsive width=900 height=1600 src="https://picsum.photos/900/1600?image=736"></amp-img> </div> <div class="spacer"></div> </article> </main> </body> </html>