Debian Codegraph @

tests/fixtures/animation-keyframes.html

raw
1 <!DOCTYPE html>
2 <html lang="en">
3 <head>
4 <meta charset="utf-8">
5 <meta name="viewport" content="width=device-width, initial-scale=1">
6 <title>Animation duration: keyframes</title>
7 <link rel="stylesheet" href="/assets/main.css">
8 <script src="/dist/Swup.umd.js"></script>
9 <style>
10 html.is-changing .transition-custom {
11 animation: 400ms 300ms ease-in-out both page-animation;
12 }
13 html.is-rendering .transition-custom {
14 animation-direction: reverse;
15 }
16 @keyframes page-animation {
17 from {
18 transform: translateY(0);
19 opacity: 1;
20 }
21 to {
22 transform: translateY(10px);
23 opacity: 0;
24 }
25 }
26 </style>
27 </head>
28 <body>
29 <header class="header">
30 <ul>
31 <li><a href="/animation-duration.html">Duration</a></li>
32 <li><a href="/animation-complex.html">Complex</a></li>
33 <li><a href="/animation-keyframes.html">Keyframes</a></li>
34 <li><a href="/animation-native.html">Native</a></li>
35 <li><a href="/animation-partial.html">Partial</a></li>
36 <li><a href="/animation-none.html">None</a></li>
37 </ul>
38 </header>
39 <main id="swup" class="wrapper transition-custom">
40 <h1>Animation duration: keyframes</h1>
41 </main>
42 <script>
43 window._swup = new Swup();
44 </script>
45 </body>
46 </html>