talira

ScrollReveal

JavaScript library that animates elements as they scroll into view

source availableScrollReveal licence (GPL-3.0 for compatible open source and non-commercial use)

ScrollReveal is a small JavaScript library (about 5.7 kB minified and gzipped) that animates elements as they scroll into the browser's view. Load it from a script tag or install the scrollreveal npm package, then reveal elements with options for delay, distance, duration, easing, origin and interval.

Problems it solves

  • fade sections of my landing page in as the visitor scrolls down
  • make content slide into place when it comes on screen
  • add scroll-triggered entrance animations without writing an IntersectionObserver myself

Features

  • animates elements as they scroll into view
  • about 5.7 kB minified and gzipped
  • script tag or npm install
  • delay, distance, duration, easing, origin and interval options

Limitations

  • Commercial sites, themes and apps that keep their source private need a paid commercial licence1

Alternatives

The same job

These do what ScrollReveal does.

  1. ScrollMagic Lightweight library for scroll-driven interactions and events

Compare ScrollReveal with the top 3