Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[css-view-transitions] view-transition-* does not accept CSS variables #11785

Open
tounsoo opened this issue Feb 26, 2025 · 0 comments
Open

[css-view-transitions] view-transition-* does not accept CSS variables #11785

tounsoo opened this issue Feb 26, 2025 · 0 comments

Comments

@tounsoo
Copy link

tounsoo commented Feb 26, 2025

As I am building libraries, I have a case where a component can be nested, an example would be Tabs.

In that case, I need the ::view-transition-class and ::view-transition-new etc to be different between the nested so that transition is isolated for each. I believe using CSS var would be the cleanest way to do this but it doesn't except them.

Ex)

.tab {
  // other styles
  view-transition-class: var(--tab-unique-name);
}
::view-transition-new(var(--tab-unique-name)) {
   // some animation
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant