Skip to content

Commit

Permalink
small best practice updates that came up in the content tech review
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdavidmills committed Apr 12, 2024
1 parent 1dab85c commit 7e11ad8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
3 changes: 1 addition & 2 deletions view-transitions/mpa/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ p {

/* Customize the default animation behavior */

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

Expand Down
9 changes: 3 additions & 6 deletions view-transitions/spa/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,7 @@ h1 {

/* View Transitions CSS */

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

Expand All @@ -123,8 +122,7 @@ figcaption {

/* Simple final style */

::view-transition-old(figure-caption),
::view-transition-new(figure-caption) {
::view-transition-group(figure-caption) {
height: 100%;
}

Expand All @@ -140,8 +138,7 @@ figcaption {
to { transform: scaleX(0); }
}
::view-transition-old(figure-caption),
::view-transition-new(figure-caption) {
::view-transition-group(figure-caption) {
height: auto;
right: 0;
left: auto;
Expand Down

0 comments on commit 7e11ad8

Please sign in to comment.