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

View Transitions #2

Merged
merged 4 commits into from
Oct 10, 2023
Merged

View Transitions #2

merged 4 commits into from
Oct 10, 2023

Conversation

palkan
Copy link
Owner

@palkan palkan commented Oct 10, 2023

This PR adds View Transitions support to Turbo.

Changes

  • Extended turbo:before-render callback to wrap rendering with view transitions if enabled and supported.
  • Added data-turbo-transition attributes to album covers and the main heading to animate their transition.
  • Extracted core functionality (mostly objects transition) into turbo-view-transitions package.
  • Added turbo:before-stream-render callback to perform view transitions on stream updates.

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

Successfully merging this pull request may close these issues.

1 participant