Skip to content

Commit

Permalink
Fixes for pepelsbey review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdavidmills committed Mar 25, 2024
1 parent 52ca0c6 commit 1dab85c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 19 deletions.
1 change: 0 additions & 1 deletion view-transitions/mpa/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
<meta charset="utf-8">
<title>Cross-document view transition example: Page 1</title>
<link rel="stylesheet" href="styles.css">
<script defer src="index.js"></script>
</head>

<body>
Expand Down
13 changes: 0 additions & 13 deletions view-transitions/mpa/index.js

This file was deleted.

1 change: 0 additions & 1 deletion view-transitions/mpa/page2.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
<meta charset="utf-8">
<title>Cross-document view transition example: Page 2</title>
<link rel="stylesheet" href="styles.css">
<script defer src="index.js"></script>
</head>

<body>
Expand Down
10 changes: 6 additions & 4 deletions view-transitions/mpa/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@ p {
navigation: auto;
}

/* Customize the default animation */
/* Customize the default animation behavior */

/* ::view-transition-old(root),
::view-transition-old(root),
::view-transition-new(root) {
animation-duration: 0.5s;
} */
}

/* create a new animation */
/* Create a custom animation */

@keyframes move-out {
from {
Expand All @@ -63,6 +63,8 @@ p {
}
}

/* Apply the custom animation to the old and new page states */

::view-transition-old(root) {
animation: 0.4s ease-in both move-out;

Expand Down

0 comments on commit 1dab85c

Please sign in to comment.