Commit cc4bad4
committed
feat(pro-dialogs): slide-over animation between carousel slides
Replaces the cross-fade-only transition between feature carousel slides
with a slide-and-fade. Each slide lives at one of three transform
positions (translateX(100%) default, 0 when active, -100% when .is-left)
so the outgoing slide can animate left while the incoming one comes in
from the right (and vice versa for backward navigation). The .is-active
rule is defined after .is-left so a slide flipping from parked-left to
active animates directly from -100% to 0, no intermediate jump.
Same treatment is applied to .feature-info-slide so the text block
below the video animates in lockstep with the stage.1 parent 251409d commit cc4bad4
1 file changed
Lines changed: 25 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
88 | 93 | | |
89 | 94 | | |
90 | 95 | | |
91 | 96 | | |
92 | 97 | | |
93 | | - | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
94 | 101 | | |
95 | 102 | | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
96 | 109 | | |
97 | 110 | | |
98 | 111 | | |
| 112 | + | |
99 | 113 | | |
100 | 114 | | |
101 | 115 | | |
| |||
228 | 242 | | |
229 | 243 | | |
230 | 244 | | |
| 245 | + | |
| 246 | + | |
231 | 247 | | |
232 | 248 | | |
233 | 249 | | |
234 | 250 | | |
235 | 251 | | |
236 | 252 | | |
237 | | - | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
238 | 256 | | |
239 | 257 | | |
240 | 258 | | |
241 | 259 | | |
242 | 260 | | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
243 | 265 | | |
244 | 266 | | |
245 | 267 | | |
| 268 | + | |
246 | 269 | | |
247 | 270 | | |
248 | 271 | | |
| |||
0 commit comments