提交 8f792515 编写于 作者: J Julian Lloyd

ScrollReveal v4.0.2

上级 57498fe2
# Change Log
## Unreleased
## [4.0.2] - 2018-09-11
### Fixed
......@@ -475,6 +475,7 @@ This version marks a significant change in how developers use ScrollReveal, intr
### Hello World
[4.0.2]: https://github.com/jlmakes/scrollreveal/compare/v4.0.1...v4.0.2
[4.0.1]: https://github.com/jlmakes/scrollreveal/compare/v4.0.0...v4.0.1
[4.0.0]: https://github.com/jlmakes/scrollreveal/compare/v3.3.6...v4.0.0
[3.3.6]: https://github.com/jlmakes/scrollreveal/compare/v3.3.5...v3.3.6
......
/*! @license ScrollReveal v4.0.1
/*! @license ScrollReveal v4.0.2
Copyright 2018 Fisssion LLC.
......@@ -47,9 +47,7 @@ var defaults = {
}
function failure() {
var root = document.documentElement;
root.classList.remove('sr');
document.documentElement.classList.remove('sr');
return {
clean: function clean() {},
......@@ -63,16 +61,13 @@ function failure() {
}
function success() {
var html = document.documentElement;
var body = document.body;
html.classList.add('sr');
document.documentElement.classList.add('sr');
if (body) {
body.style.height = '100%';
if (document.body) {
document.body.style.height = '100%';
} else {
document.addEventListener('DOMContentLoaded', function () {
body.style.height = '100%';
document.body.style.height = '100%';
});
}
}
......@@ -1072,7 +1067,7 @@ function transitionSupported() {
return 'transition' in style || 'WebkitTransition' in style
}
var version = "4.0.1";
var version = "4.0.2";
var boundDelegate;
var boundDestroy;
......
/*! @license ScrollReveal v4.0.1
/*! @license ScrollReveal v4.0.2
Copyright 2018 Fisssion LLC.
......@@ -49,9 +49,7 @@ var defaults = {
}
function failure() {
var root = document.documentElement;
root.classList.remove('sr');
document.documentElement.classList.remove('sr');
return {
clean: function clean() {},
......@@ -65,16 +63,13 @@ function failure() {
}
function success() {
var html = document.documentElement;
var body = document.body;
html.classList.add('sr');
document.documentElement.classList.add('sr');
if (body) {
body.style.height = '100%';
if (document.body) {
document.body.style.height = '100%';
} else {
document.addEventListener('DOMContentLoaded', function () {
body.style.height = '100%';
document.body.style.height = '100%';
});
}
}
......@@ -1447,7 +1442,7 @@ function transitionSupported() {
return 'transition' in style || 'WebkitTransition' in style
}
var version = "4.0.1";
var version = "4.0.2";
var boundDelegate;
var boundDestroy;
......
此差异已折叠。
{
"name": "scrollreveal",
"version": "4.0.1",
"version": "4.0.2",
"description": "Animate elements as they scroll into view",
"homepage": "https://scrollrevealjs.org",
"main": "dist/scrollreveal.js",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册