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

Wildcard transition names in selectors #213

Closed
matthewp opened this issue Jun 28, 2023 · 2 comments
Closed

Wildcard transition names in selectors #213

matthewp opened this issue Jun 28, 2023 · 2 comments

Comments

@matthewp
Copy link

This blog post explains how you might add separate view-transition-names when operating on a list. Like so:

<div class="posts">
{% foreach post in posts %}
  <a style="view-transition-name: post-{{ post.id }}" href="{{ post.url }}">{{ post.title }}</a>
{% endforeach %}
</div>

Notice here that this creates a dynamic view-transition-name per anchor. I don't think there is a way to then style these transitions old/new views. You can't currently do:

::view-transition-old(post-*) {
  animation: fade 0.2s linear forwards;
}

Maybe there's another/better way to do this?

@jakearchibald
Copy link
Collaborator

This is discussed over in w3c/csswg-drafts#8319

@jakearchibald jakearchibald closed this as not planned Won't fix, can't repro, duplicate, stale Jun 28, 2023
@matthewp
Copy link
Author

Thanks!

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

2 participants