File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
docs/src/routes/docs/cookbook/view-transition
qwik/src/core/shared/jsx/types Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -49,15 +49,15 @@ export default component$(({ list }) => {
49
49
}
50
50
```
51
51
52
- Sometime we need to have some specific logic before the animation start. In this case you can listen to the ` qviewTransition ` event.
52
+ Sometime we need to have some specific logic before the animation start. In this case you can listen to the ` qviewtransition ` event.
53
53
54
54
For example if you want to only animate visible element:
55
55
56
56
``` tsx
57
57
export default component$ (() => {
58
58
// In this case we need the callback to be sync, else the transition might have already happened
59
59
useOnDocument (
60
- ' qviewTransition ' ,
60
+ ' qviewtransition ' ,
61
61
sync$ ((event : CustomEvent <ViewTransition >) => {
62
62
const transition = event .detail ;
63
63
const items = document .querySelectorAll (' .item' );
@@ -121,7 +121,7 @@ export default component$(() => {
121
121
}
122
122
` );
123
123
useOnDocument (
124
- ' qviewTransition ' ,
124
+ ' qviewtransition ' ,
125
125
$ (async (event : CustomEvent <ViewTransition >) => {
126
126
// Get visible item's viewTransitionName (should happen before transition is ready)
127
127
const items = document .querySelectorAll <HTMLElement >(' .item' );
Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ type AllEventMapRaw = HTMLElementEventMap &
114
114
qinit : QwikInitEvent ;
115
115
qsymbol : QwikSymbolEvent ;
116
116
qvisible : QwikVisibleEvent ;
117
- qviewTransition : QwikViewTransitionEvent ;
117
+ qviewtransition : QwikViewTransitionEvent ;
118
118
} ;
119
119
120
120
/** This corrects the TS definition for ToggleEvent @public */
You can’t perform that action at this time.
0 commit comments