Skip to content

Commit

Permalink
more explanation
Browse files Browse the repository at this point in the history
  • Loading branch information
martrapp committed Nov 28, 2024
1 parent 45ecba8 commit 87b992d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/pages/demo-explainer/BasicIM5.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ This example takes a rather unconventional approach. Instead of tweaking the old
display: none;
}
```
Be aware that this approach only works if the old and the new images have the same `object-fit` and `object-position`, which has to be mirrored by the corresponding `background-*` properties of the image pair pseudo.
2 changes: 1 addition & 1 deletion src/pages/demo/BasicIM5.astro
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Demo from "@/layouts/DemoLayout.astro";

<Demo
title="View Transition Example: Same Image, changing Aspect Ratio"
backlink="/basics/examples/#basicim2"
backlink="/basics/examples/#basicim5"
prev="/demo/BasicIM/"
next="/demo/FailIM/"
>
Expand Down

0 comments on commit 87b992d

Please sign in to comment.