From 0a6cd244410c8bf9c4d5cd4e6b65672170669a15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filip=20Hol=C4=8D=C3=ADk?= Date: Tue, 29 Aug 2023 12:41:39 +0200 Subject: [PATCH] docs: demonstration of programmatic controller and slide indicator in demo page --- src/routes/+page.svelte | 42 +++++++++++++++++++++++++++++++++++------ 1 file changed, 36 insertions(+), 6 deletions(-) diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index a66c84d..8cdcc5c 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -1,18 +1,34 @@ - Svelte-fullpage - + +
@@ -23,11 +39,14 @@ This page is made using svelte-fullpage component, try to scroll, drag with mouse or swipe vertical with finger or use arrows to scroll.

+

+ Try opening console and see what is being logged when you scroll ctr + shift + I +

- +
@@ -37,6 +56,9 @@ There is also component for slides as you can see. Try to drag/swipe right or left, also you can use arrows.

+

+ This is section {$fullpageController} and slide {$sectionController} +

@@ -45,9 +67,10 @@
-

Another slide

+

Usage example

- You can style every individual slide, notice background change. + Look at source code + of this very page to see how to use this component, and thus inspire yourself.

@@ -94,14 +117,21 @@ is problem with slide animation. Currently I'm the only contributor of this project, feel free to fork it and make pull request.

+

+ This is section {$fullpageController} +

-