vanilla-extract icon indicating copy to clipboard operation
vanilla-extract copied to clipboard

Add createViewTransition function

Open wuz opened this issue 7 months ago • 3 comments

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.

wuz avatar Jul 18 '24 22:07 wuz