Skip to content

Commit 2477fe1

Browse files
committed
CSS: Add transitions for some reason
1 parent eede269 commit 2477fe1

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

assets/css/v2/style.css

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,24 @@
22
*/
33
/* Modern reset: https://piccalil.li/blog/a-more-modern-css-reset/ */
44

5+
@view-transition {
6+
navigation: auto;
7+
}
8+
9+
::view-transition-old(root) .content,
10+
::view-transition-new(root) .content {
11+
animation: fade 0.1s ease both;
12+
}
13+
14+
@keyframes fade {
15+
from {
16+
opacity: 0;
17+
}
18+
to {
19+
opacity: 1;
20+
}
21+
}
22+
523
/* Box sizing rules */
624
*,
725
*::before,

0 commit comments

Comments
 (0)