swift-scroll
Version:
One Page Scroll Plugin
39 lines (30 loc) • 761 B
Markdown
# Swift-scroll
### Super lightweight one page scroll library
### Made with vanilla js and ♥
### less than 1kb
## Usage
```
npm install --save swift-scroll
```
```
Include swift-scroll.css && swift-scroll.js
```
or
Include CDNs
```html
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/swift-scroll/dist/swift-scroll.css">
```
And at the end of your body tag
```html
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/swift-scroll/dist/swift-scroll.js"></script>
```
```html
<div id="well">
<div class="panel">one</div>
<div class="panel">two</div>
<div class="panel">three</div>
...
</div>
```
[View Demo](https://kanitsharma.github.io/swift-scroll/)
## Leave me a star if you think it’s cool!