[✨] View Transition Hook #229
Labels
[STAGE-2] incomplete implementation
Remove this label when implementation is complete
[STAGE-2] not fully covered by tests yet
Remove this label when tests are verified to cover the implementation
[STAGE-2] unresolved discussions left
Remove this label when all critical discussions are resolved on the issue
[STAGE-3] docs changes not added yet
Remove this label when the necessary documentation for the feature / change is added
[STAGE-3] missing 2 reviews for RFC PRs
Remove this label when at least 2 core team members reviewed and approved the RFC implementation
Champion: @GrandSchtroumpf
Discussed in #135
Originally posted by GrandSchtroumpf August 26, 2023
Is your feature request related to a problem?
I'm trying a animate a list of item on page navigation. For that I'm animating with Javascript, but there is no way to hook into the transition from the link.
Describe the solution you'd like
Ideally the
Link
element &useNavigation
would expose a callback for that :Describe alternatives you've considered
We cannot set the animation inside
style
because this is a pseudo element ofhtml
.As we cannot update the pseudo element with Javascript and we cannot use css variable like that
::view-transition-old(var(--name))
.We cannot set a
<style>
on each element because it'll be removed before the view transition is ready.The only solution is to add
<style>
insidehead
with all the::view-transition-old()
pseudo class and remove them:Note: I'm not using
::view-transition-old(*)
because I want to target specific elements (not all) and I want to add delay.Active PRs
QwikDev/qwik#7237
The text was updated successfully, but these errors were encountered: