You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm currently trying to make the below animation work using the view transitions api.
As you can see, the 'Subscribe with Google Pay' button is not clickable until the 'More payment options' link has appeared.
The same is true for the 'yearly billing' checkbox as well. This is because the modal itself is being resized as part of the same view transition.
The 'More payment options' link has a long delay for demonstration purposes. I intend to shorten the delay in the final result, so creating a second view transition for just that button isn't really an option either.
Screen.Recording.2025-01-29.at.15.09.18.mov
The text was updated successfully, but these errors were encountered:
Hey sorry I should have mentioned that I have already applied both
::view-transition {
pointer-events: none;
}
and
:root {
view-transition-name: none;
}
But in this case two buttons are animating and one finishes sooner than the other, unnecessarily keeping one of them unresponsive. So I can't really use these fixes here.
So what I'm asking here is for a way to individually control when each group's pseudo elements get removed and elements in the real dom become visible again.
You can’t undo this unresponsiveness on the groups and for good reasons:
The location on screen does not match the actual element’s location
What should be done when two different elements are transitioning from the one to the other: you could see the old one screen but then clicks would have to go to the new one?
I don't think these are an issue here. Since for this use case the animation of the individual group is already done, so swapping it out for the real dom prematurely shouldn't require any complex hit testing.
So what I'm asking here is for a way to individually control when each group's pseudo elements get removed and elements in the real dom become visible again.
I see. Different type of request indeed. Reopening.
I'm currently trying to make the below animation work using the view transitions api.
As you can see, the 'Subscribe with Google Pay' button is not clickable until the 'More payment options' link has appeared.
The same is true for the 'yearly billing' checkbox as well. This is because the modal itself is being resized as part of the same view transition.
The 'More payment options' link has a long delay for demonstration purposes. I intend to shorten the delay in the final result, so creating a second view transition for just that button isn't really an option either.
Screen.Recording.2025-01-29.at.15.09.18.mov
The text was updated successfully, but these errors were encountered: