4.0.9 • Published 3 years ago

scrollreveal v4.0.9

Weekly downloads
15,552
License
GPL-3.0
Repository
github
Last release
3 years ago

Introduction

ScrollReveal is a JavaScript library for easily animating elements as they enter/leave the viewport. It was designed to be robust and flexible, but hopefully you’ll be surprised below at how easy it is to pick up.

Installation

Browser

A simple and fast way to get started is to include this script on your page:

<script src="https://unpkg.com/scrollreveal"></script>

This will create the global variable ScrollReveal

Be careful using this method in production. Without specifying a fixed version number, Unpkg may delay your page load while it resolves the latest version. Learn more at unpkg.com

Module

npm install scrollreveal

CommonJS

const ScrollReveal = require('scrollreveal')

ES2015

import ScrollReveal from 'scrollreveal'

Usage

Installation provides us with the constructor function ScrollReveal(). Calling this function returns the ScrollReveal instance, the “brain” behind the magic.

ScrollReveal employs the singleton pattern; no matter how many times the constructor is called, it will always return the same instance. This means we can call it anywhere, worry-free.

There’s a lot we can do with this instance, but most of the time we’ll be using the reveal() method to create animation. Fundamentally, this is how to use ScrollReveal:

<h1 class="headline">
	Widget Inc.
</h1>
ScrollReveal().reveal('.headline')

🔎 See this demo live on JSBin


The full documentation can be found at https://scrollrevealjs.org

If you’re using an older version of ScrollReveal, you can find legacy documentation in the wiki


License

For commercial sites, themes, projects, and applications, keep your source code private/proprietary by purchasing a Commercial License.

Licensed under the GNU General Public License 3.0 for compatible open source projects and non-commercial use.

Copyright 2021 Fisssion LLC

4.0.9

3 years ago

4.0.8

3 years ago

4.0.7

4 years ago

4.0.6

4 years ago

4.0.5

5 years ago

4.0.4

6 years ago

4.0.3

6 years ago

4.0.2

6 years ago

4.0.1

6 years ago

4.0.0

6 years ago

4.0.0-beta.32

6 years ago

4.0.0-beta.31

6 years ago

4.0.0-beta.30

6 years ago

4.0.0-beta.29

6 years ago

4.0.0-beta.28

6 years ago

4.0.0-beta.27

6 years ago

3.4.0

6 years ago

4.0.0-beta.26

6 years ago

4.0.0-beta.25

6 years ago

4.0.0-beta.24

6 years ago

4.0.0-beta.23

6 years ago

4.0.0-beta.22

6 years ago

4.0.0-beta.21

6 years ago

4.0.0-beta.20

6 years ago

4.0.0-beta.19

6 years ago

4.0.0-beta.18

6 years ago

4.0.0-beta.17

6 years ago

4.0.0-beta.16

6 years ago

4.0.0-beta.15

7 years ago

4.0.0-beta.14

7 years ago

4.0.0-beta.13

7 years ago

4.0.0-beta.12

7 years ago

4.0.0-beta.11

7 years ago

4.0.0-beta.10

7 years ago

3.3.6

7 years ago

4.0.0-beta.9

7 years ago

4.0.0-beta.8

7 years ago

4.0.0-beta.7

7 years ago

4.0.0-beta.6

7 years ago

4.0.0-beta.5

7 years ago

4.0.0-beta.4

7 years ago

4.0.0-beta.3

7 years ago

3.3.5

7 years ago

4.0.0-beta.2

7 years ago

3.3.4

7 years ago

3.3.3

7 years ago

4.0.0-beta.1

7 years ago

4.0.0-beta.0

7 years ago

3.3.2

7 years ago

3.3.1

8 years ago

3.3.0

8 years ago

3.2.0

8 years ago

3.1.5

8 years ago

3.1.4

8 years ago

3.1.3

8 years ago

3.1.2

8 years ago

3.1.1

8 years ago

3.1.0

8 years ago

3.0.9

8 years ago

3.0.8

8 years ago

3.0.7

8 years ago

3.0.6

8 years ago

3.0.5

8 years ago

3.0.4

8 years ago

3.0.3

8 years ago

2.3.3

8 years ago

2.2.1

8 years ago

3.0.2

8 years ago

3.0.1

8 years ago

3.0.0

8 years ago

2.3.2

9 years ago

2.2.0

9 years ago