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

feat: add support for view transitions #1532

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

marvinhagemeister
Copy link
Collaborator

@marvinhagemeister marvinhagemeister commented Jul 26, 2023

This is a very rough draft for natively supporting view transitions in Fresh. It's inspired by the recent astro announcement. I quite like the way they handle the CSS generation via attributes.

Keep in mind that this is a very early prototype.

Rough demo:

fresh-view-transitions.mp4

TODO:

  • generate CSS bindings on the fly
  • Ensure correctness of history entries
  • Only load view transition code when used.
  • tests

@marvinhagemeister
Copy link
Collaborator Author

Updated video:

fresh-view_ransitions_3.mp4

(I know it's not the prettiest animation, it's just to show that it works)

@lino-levan
Copy link
Contributor

Excited for this. Definitely a more "fresh-y" way of doing this.

@welschmoor
Copy link

Dear Santa...

really looking forward to it!

@mgenereu
Copy link
Contributor

mgenereu commented Feb 6, 2024

Do you think this will eventually work with partials?

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.

4 participants