vanilla-extract
vanilla-extract copied to clipboard
Add createViewTransition function
View transitions are starting to get more support and it would be nice to use the same API style from createContainer
to create locally scoped view transition names.
This PR adds a createViewContainer
function with a name
arg and an optional debugId
arg.
Definitely open to suggestions on naming here - similar to CSS container queries, View Transitions have a view-transition-name
css property and I thought it would track better with createContainer -> container-name
to have createViewTransition -> view-transition-name
.