Skip to content

Commit df97713

Browse files
committed
try adding prop
1 parent d205b2f commit df97713

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

components/IonPage.svelte

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
export const ionViewDidEnter = () => {};
99
export const ionViewWillLeave = undefined; // unsupported as we cannot use beforeNavigate in npm library
1010
export const ionViewDidLeave = () => {};
11-
export const in = () => {};
11+
export let fly = {in: { x: 1000, duration: 300 }, out: { x: -1000, duration: 300 }};
1212
1313
ionViewWillEnter();
1414
@@ -31,12 +31,12 @@
3131
3232
ionViewDidLeave();
3333
});
34-
// in:fly={{ x: 1000, duration: 300 }}
35-
// out:fly={{ x: -1000, duration: 300 }}
3634
</script>
3735

3836
<div
3937
class="ion-page"
38+
in:fly={fly.in}
39+
out:fly={fly.out}
4040
>
4141
<slot />
4242
</div>

0 commit comments

Comments
 (0)