From 9956824a96ae24453ec7e11df0dbcc6407899656 Mon Sep 17 00:00:00 2001 From: phucbm Date: Tue, 8 Feb 2022 17:41:21 +0700 Subject: [PATCH 1/2] :memo: update README.md --- README.md | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index a57e613..c948ff4 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@
Scroll Direction

Scroll Direction

-

A lightweight jQuery plugin to detect scroll direction on your website.

+

A lightweight Javascript plugin to detect scroll direction on your website.

@@ -9,8 +9,11 @@ - + + +made-in-vietnam +
> **Update**: Scroll Direction now works with other libraries that hijack the native scrollbar (like Locomotive Scroll). @@ -36,15 +39,15 @@ You can also browse for the latest version by visiting [Scroll Direction on jsDelivr](https://cdn.jsdelivr.net/gh/phucbm/jquery-scroll-direction-plugin/) ```html - - + + ``` or minified version ```html - - + + ``` ### Initialize Scroll Direction @@ -52,8 +55,11 @@ or minified version After init, you will have some classes on your body tag to indicate the scroll direction and position. ```js -// init Scroll Direction +// jQuery $.scrollDirection.init(); + +// Pure JS +window.scrollDirection.init(); ``` ```html From 74485baa64670ea389d717447aa844d5b099324b Mon Sep 17 00:00:00 2001 From: Phuc Bui Date: Tue, 8 Feb 2022 17:52:31 +0700 Subject: [PATCH 2/2] Update README.md --- README.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index c948ff4..6623537 100644 --- a/README.md +++ b/README.md @@ -18,11 +18,9 @@ > **Update**: Scroll Direction now works with other libraries that hijack the native scrollbar (like Locomotive Scroll). -**[View demo on CodePen →](https://codepen.io/phucbui/pen/yLaeqBw)** - ## Getting started -### Download locally +### Self-hosting You can [download the plugin directly from Github](https://raw.githubusercontent.com/phucbm/jquery-scroll-direction-plugin/main/jquery.scroll-direction.js) @@ -30,7 +28,7 @@ can [download the plugin directly from Github](https://raw.githubusercontent.com ```html - + ``` ### Using CDN @@ -199,4 +197,4 @@ And start test server ```shell gulp serve -``` \ No newline at end of file +```