|
8 | 8 | <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>
|
9 | 9 | <script async src="https://cdn.ampproject.org/v0.js"></script>
|
10 | 10 | <script async custom-element="amp-story" src="https://cdn.ampproject.org/v0/amp-story-1.0.js"></script>
|
| 11 | + <script async="" custom-element="amp-animation" src="/dist/v0/amp-animation-0.1.max.js"></script> |
| 12 | + <script async custom-element="amp-story-panning-media" src="https://cdn.ampproject.org/v0/amp-story-panning-media-0.1.js"></script> |
| 13 | + <link href="https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,400;0,500;0,700;1,500&display=swap" rel="stylesheet"> |
11 | 14 | <style amp-custom>
|
| 15 | + amp-story { |
| 16 | + font-family: 'Poppins', sans-serif; |
| 17 | + color: white; |
| 18 | + text-align: center; |
| 19 | + } |
| 20 | + amp-story-grid-layer h1 { |
| 21 | + font-size: 2em; |
| 22 | + } |
| 23 | + amp-story-grid-layer h1, amp-story-grid-layer h2 { |
| 24 | + font-weight: 700; |
| 25 | + text-shadow: 0px 4px 4px #00000055; |
| 26 | + } |
12 | 27 | #expToggle {
|
13 | 28 | position: absolute;
|
14 | 29 | top: 0;
|
|
26 | 41 | poster-portrait-src="example.com/poster.jpg"
|
27 | 42 | >
|
28 | 43 | <amp-story-page id="page-1">
|
29 |
| - <amp-story-grid-layer template="fill"> |
30 |
| - page 1 |
| 44 | + <amp-story-panning-media layout="fill" x="50%" y="0%" lock-bounds> |
| 45 | + <amp-img |
| 46 | + layout="fill" |
| 47 | + width="1600" |
| 48 | + height="900" |
| 49 | + src="/examples/visual-tests/picsum.photos/image980_1600x900.jpg" |
| 50 | + ></amp-img> |
| 51 | + </amp-story-panning-media> |
| 52 | + <amp-story-grid-layer template="thirds"> |
| 53 | + <span> |
| 54 | + <span><h1 animate-in="scale-fade-up">Page 1</h1></span> |
| 55 | + <span><h2 animate-in="scale-fade-up" animate-in-delay=".1s">Animate in example</h2></span> |
| 56 | + </span> |
31 | 57 | </amp-story-grid-layer>
|
| 58 | + <amp-story-page-attachment data-title="lorem ipsum" layout="nodisplay"> |
| 59 | + <h2>Lorem ipsum</h2> |
| 60 | + <p> |
| 61 | + Lorem ipsum dolor sit amet consectetur adipisicing elit. Voluptate enim fuga maxime, laborum nobis porro quos officiis voluptates magnam distinctio blanditiis quae odit doloribus dolorem cum debitis temporibus molestias facere. |
| 62 | + </p> |
| 63 | + <p> |
| 64 | + Lorem ipsum dolor sit amet consectetur adipisicing elit. Voluptate enim fuga maxime, laborum nobis porro quos officiis voluptates magnam distinctio blanditiis quae odit doloribus dolorem cum debitis temporibus molestias facere. |
| 65 | + </p> |
| 66 | + <p> |
| 67 | + Lorem ipsum dolor sit amet consectetur adipisicing elit. Voluptate enim fuga maxime, laborum nobis porro quos officiis voluptates magnam distinctio blanditiis quae odit doloribus dolorem cum debitis temporibus molestias facere. |
| 68 | + </p> |
| 69 | + <p> |
| 70 | + Lorem ipsum dolor sit amet consectetur adipisicing elit. Voluptate enim fuga maxime, laborum nobis porro quos officiis voluptates magnam distinctio blanditiis quae odit doloribus dolorem cum debitis temporibus molestias facere. |
| 71 | + </p> |
| 72 | + </amp-story-page-attachment> |
32 | 73 | </amp-story-page>
|
| 74 | + |
33 | 75 | <amp-story-page id="page-2">
|
34 |
| - <amp-story-grid-layer template="fill"> |
35 |
| - page 2 |
| 76 | + <amp-story-panning-media layout="fill" x="-20%" y="0%" lock-bounds> |
| 77 | + <amp-img |
| 78 | + layout="fill" |
| 79 | + width="1600" |
| 80 | + height="900" |
| 81 | + src="/examples/visual-tests/picsum.photos/image980_1600x900.jpg" |
| 82 | + ></amp-img> |
| 83 | + </amp-story-panning-media> |
| 84 | + <amp-story-grid-layer template="thirds"> |
| 85 | + <span> |
| 86 | + <span><h1 animate-in="scale-fade-up">Page 2</h1></span> |
| 87 | + <span><h2 animate-in="scale-fade-up" animate-in-delay=".1s">Animate in example</h2></span> |
| 88 | + </span> |
36 | 89 | </amp-story-grid-layer>
|
37 | 90 | </amp-story-page>
|
| 91 | + |
38 | 92 | <amp-story-page id="page-3">
|
39 |
| - <amp-story-grid-layer template="fill"> |
40 |
| - page 3 |
| 93 | + <amp-story-panning-media layout="fill" x="-20%" y="10%" zoom='1.5' lock-bounds> |
| 94 | + <amp-img |
| 95 | + layout="fill" |
| 96 | + width="1600" |
| 97 | + height="900" |
| 98 | + src="/examples/visual-tests/picsum.photos/image980_1600x900.jpg" |
| 99 | + ></amp-img> |
| 100 | + </amp-story-panning-media> |
| 101 | + <amp-story-grid-layer template="thirds"> |
| 102 | + <span> |
| 103 | + <span><h1 animate-in="scale-fade-up">Page 3</h1></span> |
| 104 | + <span><h2 animate-in="scale-fade-up" animate-in-delay=".1s">Animate in example</h2></span> |
| 105 | + </span> |
41 | 106 | </amp-story-grid-layer>
|
42 | 107 | </amp-story-page>
|
43 | 108 |
|
|
0 commit comments