-
Notifications
You must be signed in to change notification settings - Fork 756
Open
Labels
css-view-transitions-2View Transitions; New feature requestsView Transitions; New feature requests
Description
Something I see a lot of authors try to do – and fail at – is access custom properties of the original element from within the ::view-transition-* pseudos. See https://frontendmasters.com/blog/view-transitions-staggering/#but-does-that-actually-help-us for a recent example of this.
#items > * {
view-transition-class: item;
--index: sibling-index();
}
::view-transition-group(*.item) {
animation-delay: calc(var(--index) * 0.02s);
}Maybe we can have the ::view-transition-group pseudo gain access to the custom properties from the original element somehow?
Maybe by copying over the custom props in layered capture mode (which I can imagine would be slow when there are a ton of custom properties)?
Or maybe by defining their lookup mechanism (cfr. highlight pseudos), which I guess would be faster?
bleper, noamr, ydaniv and ExE-Boss
Metadata
Metadata
Assignees
Labels
css-view-transitions-2View Transitions; New feature requestsView Transitions; New feature requests