Replies: 1 comment
-
Hi. I'd recommend targeting it with css, e.g. set the id or className and in a stylesheet do: .expandingImage {
viewTransitionName: "image-expand"
} You could also try wrapping it in a div, and apply the inline style to the div though you may need to set some extra styles on that to ensure it expands properly with the image. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How can I enhance my React application by incorporating the viewTransitionName property into the Image component for using View Transition API?
For example:
Beta Was this translation helpful? Give feedback.
All reactions