https://github.com/scriptex/introscroll
Fullwidth and Fullheight intro section
https://github.com/scriptex/introscroll
page-scroll single-scroll swipe-to-scroll
Last synced: 10 months ago
JSON representation
Fullwidth and Fullheight intro section
- Host: GitHub
- URL: https://github.com/scriptex/introscroll
- Owner: scriptex
- License: mit
- Created: 2017-01-31T20:22:13.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2025-03-05T06:19:47.000Z (11 months ago)
- Last Synced: 2025-03-18T04:42:45.525Z (10 months ago)
- Topics: page-scroll, single-scroll, swipe-to-scroll
- Language: JavaScript
- Homepage: https://intro-scroll.atanas.info/
- Size: 1.4 MB
- Stars: 5
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
[](https://travis-ci.com/scriptex/IntroScroll)
[](https://github.com/scriptex/IntroScroll/actions?query=workflow%3ABuild)
[](https://www.codacy.com/gh/scriptex/IntroScroll/dashboard?utm_source=github.com&utm_medium=referral&utm_content=scriptex/IntroScroll&utm_campaign=Badge_Grade)
[](https://codebeat.co/projects/github-com-scriptex-IntroScroll-master)
[](https://www.codefactor.io/repository/github/scriptex/IntroScroll)
[](https://deepscan.io/dashboard#view=project&tid=3574&pid=5257&bid=40799)
[](https://github.com/scriptex/IntroScroll/)
# IntroScroll
> Create a fullscreen intro section and dismiss it in a single gesture.
See the demo [here](https://intro-scroll.atanas.info/)
## Visitor stats




## Code stats





## Description
This library creates a fullscreen intro section and disables the default page scroll.
The page scroll is being enabled again after a single mouse scroll, touch swipe up or any gesture that forces the page to move upwards.
## Install
```sh
npm i introscroll
```
or
```sh
yarn add introscroll
```
or
just download this repository and link the files located in dist folder
or include it from unpkg.com
```html
```
Then
```javascript
import IntroScroll from 'introscroll';
```
and initialize an instance using default settings
```javascript
const intro = new IntroScroll();
```
or add your own settings
```javascript
const intro = new IntroScroll({
element: '#your-fullscreen-section',
wrapper: '#your-fullscreen-sections-wrapper',
container: '#your-fullscreen-sections-container',
trigger: '#your-fullscreen-sections-link',
scrollClass: 'intro--scrolled',
duration: 1000,
afterScroll(instance) {
console.log(instance.element);
}
});
```
For more details please see the [demo](https://github.com/scriptex/IntroScroll/blob/master/demo/index.html).
## LICENSE
MIT
---
Connect with me:
---