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
Copy file name to clipboardExpand all lines: README.md
+71-24Lines changed: 71 additions & 24 deletions
Original file line number
Diff line number
Diff line change
@@ -8,27 +8,81 @@
8
8
</div>
9
9
10
10
# vue-snap
11
-
> Lightweight Slider/Carousel based on CSS Scroll Snap.
11
+
> Lightweight Carousel based on CSS Scroll Snap.
12
+
13
+
## Table of Contents
14
+
-[About](#about)
15
+
-[Storybook & Docs](#stories--docs)
16
+
-[Installation & Usage](#installation--usage)
17
+
-[for Vue@2](#for-vue2-version)
18
+
-[for Vue@3](#for-vue3-version)
19
+
-[Examples](#examples))
20
+
-[Contribution](#contribution)
21
+
-[License](#license)
12
22
13
23
## About
14
-
Please note that this lib is on very early stage. The idea behind this plugin is that to create fully responsive and well optimised Carousel. I created this as PoC for one of my biggest client, who wants to speed up his website.
24
+
Idea behind this plugin is that to create fully responsive and well optimised Carousel.
25
+
We used new CSS properties [Scroll Snapping](https://developers.google.com/web/updates/2018/07/css-scroll-snap), which allows us to lock the Carousel Wrapper to certain Slides or locations after a user has finished scrolling. This helps us to minimize library size, with only critical part, and avoid any heavy JS calculations or any CSS Hacks inside.
0 commit comments