Changelog

3.3.5 - _2017, February 18th

Includes patchwork up to 3.3.5.

Features

Example:

// Let’s see all 4 together now...
sr.reveal('.foo', {
  beforeReveal: (el) => console.log('Reveal started...'),
  afterReveal: (el) => console.log('Reveal complete.'),
  beforeReset: (el) => console.log('Reset triggered...'),
  afterReset: (el) => console.log('Reset complete.')
})

Fixes

3.2.0 — 2016, July 8th

Includes patchwork up to 3.1.5.

Features

Fixes

Improvements

3.1.0 — 2016, February 22nd

Includes patchwork up to 3.0.9.

Features

window sr = ScrollReveal({ container: '.container' });
// or
sr.reveal('.foo', { container: '.fooContainer' });
// What you’re used to...
sr.reveal('.myElem');

// New! Pass a Node (works great with React!)
var myElem = document.querySelector('.myElem');
sr.reveal(myElem);

Fixes

Improvements

3.0.0 — 2015, December 15th

Note: Version 3 is not backwards compatible with version 2.

Reimagining ScrollReveal for vastly improved flexibility and maintainability! :bow:

Breaking Changes!!

Example using version 2.3.2 (deprecated)

<!-- old.html -->
<div data-sr="enter bottom over 2s and wait 1s"> Bad Foo </div>
<div data-sr="enter bottom over 2s and wait 1s"> Bad Bar </div>
// old.js
window.sr = scrollReveal();
sr.init();

Example using version 3.0.0

<!-- new.html -->
<div class="myReveal"> Good Foo </div>
<div class="myReveal"> Good Bar </div>
// new.js
window.sr = ScrollReveal();
sr.reveal('.myReveal', { origin: 'bottom', duration: 2000, delay: 1000 });

Features

Improvements


2.3.2 — 2015, June 15th

The latest stable build of version 2. See Legacy Documentation (v2.x)

Note: There were some issues publishing this version on Bower, and so v2.3.2 was patched to v2.3.3 to get it back on Bower. There is no meaningful difference between the two.

Features

window.sr = new scrollReveal();
// or...
window.sr = scrollReveal();

2.3.0 — 2015, April 25th

Features

(Hardly) Breaking Changes!


2.2.0 — 2015, March 18th

Features


2.1.0 — 2014, November 25th

Includes patchwork up to 2.0.5.

Fixes

Improvements


2.0.0 — 2014, October 17th

A significant re-write of the public beta, based on 8 months of feedback! :bow:

Breaking Changes!!

Good

“`

Features