forked from ampproject/amphtml
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathamp-story-360.css
139 lines (124 loc) · 3.41 KB
/
amp-story-360.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
amp-story-360 canvas {
position: absolute; /* fixes Safari bug */
width: 100% !important;
height: 100% !important;
}
amp-story-360 amp-img {
opacity: 0 !important;
}
.i-amphtml-story-360-activate-button {
position: absolute !important;
bottom: 12px !important;
right: 12px !important;
background: rgba(0, 0, 0, .8) !important;
color: white !important;
outline: none !important;
border: none !important;
padding: 6px !important;
padding-left: 10px !important;
border-radius: 18px !important;
font-size: 12px !important;
font-family: 'Roboto', sans-serif !important;
display: flex !important;
align-items: center !important;
z-index: 100000 !important;
}
.i-amphtml-story-360-activate-button-icon {
box-sizing: border-box !important;
margin-left: 5px !important;
font-size: 6px !important;
width: 24px !important;
height: 24px !important;
border: 1px solid white !important;
border-radius: 100% !important;
display: flex !important;
align-items: center !important;
justify-content: center !important;
font-weight: 700 !important;
position: relative !important;
}
.i-amphtml-story-360-activate-button-icon-svg {
position: absolute !important;
width: calc(100% + 2px) !important;
height: calc(100% + 2px) !important;
left: -1px !important;
top: -1px !important;
}
[active] .i-amphtml-story-360-activate-button-icon-svg {
animation: rotate 1s 1s !important;
}
@keyframes rotate {
100% {
transform: rotate(360deg);
}
}
.i-amphtml-story-360-discovery {
pointer-events: none !important;
position: absolute !important;
bottom: 0 !important;
left: 0 !important;
width: 100% !important;
height: 66% !important;
perspective: 550px !important;
perspective-origin: center calc(100% - 145px) !important;
background: linear-gradient(transparent, rgba(0, 0, 0, .9)) !important;
animation: fadeOut 1s 4s forwards ease-in-out !important;
z-index: 100000 !important;
}
@keyframes fadeOut {
0% {
opacity: 1;
}
100% {
opacity: 0;
}
}
.i-amphtml-story-360-discovery-animation {
position: absolute !important;
bottom: 95px !important;
left: calc(50% - 30px) !important;
width: 55px !important;
height: 100px !important;
border: 1px solid white !important;
border-radius: 10px !important;
animation: lookAround 4s !important;
}
.i-amphtml-story-360-discovery-animation:before {
content: "" !important;
position: absolute !important;
border-top: 1px solid white !important;
width: 10px !important;
top: 5px !important;
left: calc(50% - 5px) !important;
}
@keyframes lookAround {
0% {
animation-timing-function: ease-in-out;
transform: rotate3d(0, 0, 0, 0) translate3d(0, 0, 0);
}
25% {
animation-timing-function: ease-in-out;
transform: rotateY(45deg) rotateX(20deg) translate3d(-100px, 10px, 0);
}
50% {
animation-timing-function: ease-in-out;
transform: rotateX(-40deg) translate3d(0, -50px, 0);
}
75% {
animation-timing-function: ease-in-out;
transform: rotateY(-45deg) rotateX(20deg) translate3d(100px, 10px, 0);
}
100% {
animation-timing-function: ease-in-out;
transform: rotate3d(0, 0, 0, 0) translate3d(0, 0, 0);
}
}
.i-amphtml-story-360-discovery-text {
font-family: 'Roboto', sans-serif !important;
position: absolute !important;
bottom: 40px !important;
width: 100% !important;
font-size: 16px !important;
text-align: center !important;
color: white !important;
}