Skip to content

Commit d64bb43

Browse files
committed
Revert "✏️ refactor v1.1.0"
This reverts commit a9631a5
1 parent d16c14b commit d64bb43

File tree

2 files changed

+13
-23
lines changed

2 files changed

+13
-23
lines changed

README.md

Lines changed: 11 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,36 @@
1-
<div align="center">
2-
<img width="100px" src="https://raw.githubusercontent.com/phucbm/scroll-direction/main/logo.svg" align="center" alt="Scroll Direction" />
3-
<h1 align="center">Scroll Direction</h1>
4-
<p align="center">A lightweight jQuery plugin to detect scroll direction on your website. </p>
5-
</div>
6-
7-
<div align="center">
8-
<a href="https://jekyllrb.com/">
9-
<img src="https://img.shields.io/badge/Stable-v1.1.0-0088ff">
10-
</a>
11-
<a href="https://www.jsdelivr.com/package/gh/phucbm/scroll-direction">
12-
<img src="https://data.jsdelivr.com/v1/package/gh/phucbm/scroll-direction/badge">
13-
</a>
14-
</div>
15-
16-
> **Update**: Scroll Direction now works with other libraries that hijack the native scrollbar (like Locomotive Scroll).
1+
# Scroll Direction v1.1.0
2+
A lightweight jQuery plugin to detect scroll direction on your website.
3+
4+
**Update**: Scroll Direction now works with other libraries that hijack the native scrollbar (like Locomotive Scroll).
175

186
**[View demo on CodePen &rarr;](https://codepen.io/phucbui/pen/yLaeqBw)**
197

208
## Getting started
219

2210
### Download locally
2311

24-
You can [download the plugin directly from Github](https://raw.githubusercontent.com/phucbm/scroll-direction/main/scroll-direction.js).
12+
You can [download the plugin directly from Github](https://raw.githubusercontent.com/phucbm/jquery-scroll-direction-plugin/main/jquery.scroll-direction.js).
2513

2614
```html
27-
<script src="your-path/scroll-direction.js"></script>
15+
<script src="your-path/jquery.scroll-direction.js"></script>
2816
```
2917

3018
### Using CDN
3119

32-
You can also browse for the latest version by visiting [Scroll Direction on jsDelivr](https://cdn.jsdelivr.net/gh/phucbm/scroll-direction/)
20+
[![](https://data.jsdelivr.com/v1/package/gh/phucbm/jquery-scroll-direction-plugin/badge)](https://www.jsdelivr.com/package/gh/phucbm/jquery-scroll-direction-plugin)
21+
22+
You can also browse for the latest version by visiting [Scroll Direction on jsDelivr](https://cdn.jsdelivr.net/gh/phucbm/jquery-scroll-direction-plugin/)
3323

3424
```html
3525
<!-- Scroll Direction - v1.1.0 -->
36-
<script src="https://cdn.jsdelivr.net/gh/phucbm/scroll-direction@1.1.0/scroll-direction.js"></script>
26+
<script src="https://cdn.jsdelivr.net/gh/phucbm/jquery-scroll-direction-plugin@1.1.0/jquery.scroll-direction.js"></script>
3727
```
3828

3929
or minified version
4030

4131
```html
4232
<!-- Scroll Direction - v1.1.0 -->
43-
<script src="https://cdn.jsdelivr.net/gh/phucbm/scroll-direction@1.1.0/scroll-direction.min.js"></script>
33+
<script src="https://cdn.jsdelivr.net/gh/phucbm/jquery-scroll-direction-plugin@1.1.0/jquery.scroll-direction.min.js"></script>
4434
```
4535

4636
### Initialize Scroll Direction
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/**
22
* jQuery Scroll Direction Plugin 1.1.0
3-
* https://github.com/phucbm/scroll-direction
3+
* https://github.com/phucbm/jquery-scroll-direction-plugin
44
*
5-
* MIT License | Copyright (c) 2021 Minh-Phuc Bui
5+
* MIT License | Copyright (c) 2020 Minh-Phuc Bui
66
*/
77

88
(function ($) {

0 commit comments

Comments
 (0)