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 Transition API #265

Open
itsezc opened this issue Jul 14, 2023 · 6 comments
Open

✨ View Transition API #265

itsezc opened this issue Jul 14, 2023 · 6 comments
Assignees
Labels
feature New feature
Milestone

Comments

@itsezc
Copy link
Member

itsezc commented Jul 14, 2023

Description

View Transition API is an upcoming Web API that is a fusion of JS & CSS to allow for smooth 60 fps (more really) transitions on the web, with relative ease.

It'd be great if we can abstract over this with Master

Resources:
https://developer.mozilla.org/en-US/docs/Web/API/View_Transitions_API
https://developer.chrome.com/docs/web-platform/view-transitions/

@1aron 1aron assigned 1aron and unassigned 1aron Jul 14, 2023
@1aron
Copy link
Member

1aron commented Jul 14, 2023

I'm impressed with the new CSS API, which allows us to manipulate browser behavior directly through CSS.

Syntactically, it may be supported now:

<div class="{view-transition-name:hero}">...</div>

It requires creating a new API config.viewTransitions to define view transitions, similar to config.animations.

export default {
    viewTransitions: {
        hero: {
            old: '@fade|.2s|linear|forwards',
            new: '@fade|.3s|linear|reverse'
        }
    }
}

@1aron 1aron added this to the Master CSS 2.X milestone Jul 14, 2023
@1aron
Copy link
Member

1aron commented Jul 20, 2023

@itsezc The API is not complex, but we tend to release it in 2.1 or 2.2; 2.0 is too much information now 😂!

@1aron 1aron changed the title ✨ View Transition API ✨ New View Transition API Sep 18, 2023
@1aron 1aron changed the title ✨ New View Transition API ✨ View Transition API Sep 18, 2023
@1aron 1aron added feature New feature and removed improvement labels Sep 18, 2023
@pragyamishra56
Copy link

@1aron If it would be possible then can you assign me to this issue I want to resolve this would be my first contribution

@1aron
Copy link
Member

1aron commented Oct 6, 2023

@1aron If it would be possible then can you assign me to this issue I want to resolve this would be my first contribution

I'm glad you're so enthusiastic! ☺️ This feature involving the core of Master CSS has been initially planned and is expected to be mastered by the team.

#169 has been assigned to you.

@master-co master-co deleted a comment from pragyamishra56 Nov 22, 2023
@1aron 1aron removed the css label Jan 22, 2024
@Ayfri
Copy link

Ayfri commented Feb 17, 2024

Any update ?

@1aron
Copy link
Member

1aron commented Feb 21, 2024

Any update ?

Not yet; we are working hard on writing extensive documentation for v2 features. You can create view transitions through native CSS as a temporary alternative.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature
Projects
None yet
Development

No branches or pull requests

5 participants