Skip to content

Commit bc8fd85

Browse files
committed
ScrollReveal v4.0.9
1 parent cb9b515 commit bc8fd85

5 files changed

Lines changed: 15 additions & 14 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Change Log
22

3-
## Unreleased
3+
## [4.0.9] - 2021-03-04
44

55
### Fixed
66

@@ -519,6 +519,7 @@ This version marks a significant change in how developers use ScrollReveal, intr
519519

520520
### Hello World
521521

522+
[4.0.9]: https://github.com/jlmakes/scrollreveal/compare/v4.0.8...v4.0.9
522523
[4.0.8]: https://github.com/jlmakes/scrollreveal/compare/v4.0.7...v4.0.8
523524
[4.0.7]: https://github.com/jlmakes/scrollreveal/compare/v4.0.6...v4.0.7
524525
[4.0.6]: https://github.com/jlmakes/scrollreveal/compare/v4.0.5...v4.0.6

dist/scrollreveal.es.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! @license ScrollReveal v4.0.8
1+
/*! @license ScrollReveal v4.0.9
22
33
Copyright 2021 Fisssion LLC.
44
@@ -427,11 +427,11 @@ function style(element) {
427427
*/
428428
function applyStyle (el, declaration) {
429429
declaration.split(';').forEach(function (pair) {
430-
var ref = pair.split(':').map(function (s) { return s.trim(); });
430+
var ref = pair.split(':');
431431
var property = ref[0];
432-
var value = ref[1];
432+
var value = ref.slice(1);
433433
if (property && value) {
434-
el.style[property] = value;
434+
el.style[property.trim()] = value.join(':');
435435
}
436436
});
437437
}
@@ -1085,7 +1085,7 @@ function isTransitionSupported() {
10851085
return 'transition' in style || 'WebkitTransition' in style
10861086
}
10871087

1088-
var version = "4.0.8";
1088+
var version = "4.0.9";
10891089

10901090
var boundDelegate;
10911091
var boundDestroy;

dist/scrollreveal.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! @license ScrollReveal v4.0.8
1+
/*! @license ScrollReveal v4.0.9
22
33
Copyright 2021 Fisssion LLC.
44
@@ -761,11 +761,11 @@
761761
*/
762762
function applyStyle (el, declaration) {
763763
declaration.split(';').forEach(function (pair) {
764-
var ref = pair.split(':').map(function (s) { return s.trim(); });
764+
var ref = pair.split(':');
765765
var property = ref[0];
766-
var value = ref[1];
766+
var value = ref.slice(1);
767767
if (property && value) {
768-
el.style[property] = value;
768+
el.style[property.trim()] = value.join(':');
769769
}
770770
});
771771
}
@@ -1461,7 +1461,7 @@
14611461
return 'transition' in style || 'WebkitTransition' in style
14621462
}
14631463

1464-
var version = "4.0.8";
1464+
var version = "4.0.9";
14651465

14661466
var boundDelegate;
14671467
var boundDestroy;

dist/scrollreveal.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "scrollreveal",
3-
"version": "4.0.8",
3+
"version": "4.0.9",
44
"description": "Animate elements as they scroll into view",
55
"homepage": "https://scrollrevealjs.org",
66
"main": "dist/scrollreveal.js",

0 commit comments

Comments
 (0)