From bc8fd853b56d06d265b2630ccb9c39e1db7fe9b7 Mon Sep 17 00:00:00 2001 From: Julian Lloyd Date: Thu, 4 Mar 2021 16:01:10 -0800 Subject: [PATCH] ScrollReveal v4.0.9 --- CHANGELOG.md | 3 ++- dist/scrollreveal.es.js | 10 +++++----- dist/scrollreveal.js | 10 +++++----- dist/scrollreveal.min.js | 4 ++-- package.json | 2 +- 5 files changed, 15 insertions(+), 14 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9152572..90ac630 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # Change Log -## Unreleased +## [4.0.9] - 2021-03-04 ### Fixed @@ -519,6 +519,7 @@ This version marks a significant change in how developers use ScrollReveal, intr ### Hello World +[4.0.9]: https://github.com/jlmakes/scrollreveal/compare/v4.0.8...v4.0.9 [4.0.8]: https://github.com/jlmakes/scrollreveal/compare/v4.0.7...v4.0.8 [4.0.7]: https://github.com/jlmakes/scrollreveal/compare/v4.0.6...v4.0.7 [4.0.6]: https://github.com/jlmakes/scrollreveal/compare/v4.0.5...v4.0.6 diff --git a/dist/scrollreveal.es.js b/dist/scrollreveal.es.js index d15cf75..fcd284c 100644 --- a/dist/scrollreveal.es.js +++ b/dist/scrollreveal.es.js @@ -1,4 +1,4 @@ -/*! @license ScrollReveal v4.0.8 +/*! @license ScrollReveal v4.0.9 Copyright 2021 Fisssion LLC. @@ -427,11 +427,11 @@ function style(element) { */ function applyStyle (el, declaration) { declaration.split(';').forEach(function (pair) { - var ref = pair.split(':').map(function (s) { return s.trim(); }); + var ref = pair.split(':'); var property = ref[0]; - var value = ref[1]; + var value = ref.slice(1); if (property && value) { - el.style[property] = value; + el.style[property.trim()] = value.join(':'); } }); } @@ -1085,7 +1085,7 @@ function isTransitionSupported() { return 'transition' in style || 'WebkitTransition' in style } -var version = "4.0.8"; +var version = "4.0.9"; var boundDelegate; var boundDestroy; diff --git a/dist/scrollreveal.js b/dist/scrollreveal.js index 6ae9dfc..99b46d3 100644 --- a/dist/scrollreveal.js +++ b/dist/scrollreveal.js @@ -1,4 +1,4 @@ -/*! @license ScrollReveal v4.0.8 +/*! @license ScrollReveal v4.0.9 Copyright 2021 Fisssion LLC. @@ -761,11 +761,11 @@ */ function applyStyle (el, declaration) { declaration.split(';').forEach(function (pair) { - var ref = pair.split(':').map(function (s) { return s.trim(); }); + var ref = pair.split(':'); var property = ref[0]; - var value = ref[1]; + var value = ref.slice(1); if (property && value) { - el.style[property] = value; + el.style[property.trim()] = value.join(':'); } }); } @@ -1461,7 +1461,7 @@ return 'transition' in style || 'WebkitTransition' in style } - var version = "4.0.8"; + var version = "4.0.9"; var boundDelegate; var boundDestroy; diff --git a/dist/scrollreveal.min.js b/dist/scrollreveal.min.js index d96b5b6..5428bbd 100644 --- a/dist/scrollreveal.min.js +++ b/dist/scrollreveal.min.js @@ -1,4 +1,4 @@ -/*! @license ScrollReveal v4.0.8 +/*! @license ScrollReveal v4.0.9 Copyright 2021 Fisssion LLC. @@ -9,4 +9,4 @@ keep your source code private/proprietary by purchasing a commercial license from https://scrollrevealjs.org/ */ -var ScrollReveal=function(){"use strict";var r={delay:0,distance:"0",duration:600,easing:"cubic-bezier(0.5, 0, 0, 1)",interval:0,opacity:0,origin:"bottom",rotate:{x:0,y:0,z:0},scale:1,cleanup:!1,container:document.documentElement,desktop:!0,mobile:!0,reset:!1,useDelay:"always",viewFactor:0,viewOffset:{top:0,right:0,bottom:0,left:0},afterReset:function(){},afterReveal:function(){},beforeReset:function(){},beforeReveal:function(){}};var n={success:function(){document.documentElement.classList.add("sr"),document.body?document.body.style.height="100%":document.addEventListener("DOMContentLoaded",function(){document.body.style.height="100%"})},failure:function(){return document.documentElement.classList.remove("sr"),{clean:function(){},destroy:function(){},reveal:function(){},sync:function(){},get noop(){return!0}}}};function o(e){return"object"==typeof window.Node?e instanceof window.Node:null!==e&&"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName}function u(e,t){if(void 0===t&&(t=document),e instanceof Array)return e.filter(o);if(o(e))return[e];if(n=e,i=Object.prototype.toString.call(n),"object"==typeof window.NodeList?n instanceof window.NodeList:null!==n&&"object"==typeof n&&"number"==typeof n.length&&/^\[object (HTMLCollection|NodeList|Object)\]$/.test(i)&&(0===n.length||o(n[0])))return Array.prototype.slice.call(e);var n,i;if("string"==typeof e)try{var r=t.querySelectorAll(e);return Array.prototype.slice.call(r)}catch(e){return[]}return[]}function s(e){return null!==e&&e instanceof Object&&(e.constructor===Object||"[object Object]"===Object.prototype.toString.call(e))}function f(n,i){if(s(n))return Object.keys(n).forEach(function(e){return i(n[e],e,n)});if(n instanceof Array)return n.forEach(function(e,t){return i(e,t,n)});throw new TypeError("Expected either an array or object literal.")}function h(e){for(var t=[],n=arguments.length-1;0=[].concat(r.body).shift())return j.call(this,n,i,-1,t),c.call(this,e,{reveal:!0,pristine:t});if(!n.blocked.foot&&i===[].concat(o.foot).shift()&&i<=[].concat(r.body).pop())return j.call(this,n,i,1,t),c.call(this,e,{reveal:!0,pristine:t})}}function E(e){var t=Math.abs(e);if(isNaN(t))throw new RangeError("Invalid sequence interval.");this.id=b(),this.interval=Math.max(t,16),this.members=[],this.models={},this.blocked={head:!1,foot:!1}}function d(e,i,r){var o=this;this.head=[],this.body=[],this.foot=[],f(e.members,function(e,t){var n=r.elements[e];n&&n[i]&&o.body.push(t)}),this.body.length&&f(e.members,function(e,t){var n=r.elements[e];n&&!n[i]&&(t=[].concat(r.body).shift())return j.call(this,n,i,-1,t),c.call(this,e,{reveal:!0,pristine:t});if(!n.blocked.foot&&i===[].concat(o.foot).shift()&&i<=[].concat(r.body).pop())return j.call(this,n,i,1,t),c.call(this,e,{reveal:!0,pristine:t})}}function E(e){var t=Math.abs(e);if(isNaN(t))throw new RangeError("Invalid sequence interval.");this.id=b(),this.interval=Math.max(t,16),this.members=[],this.models={},this.blocked={head:!1,foot:!1}}function d(e,i,r){var o=this;this.head=[],this.body=[],this.foot=[],f(e.members,function(e,t){var n=r.elements[e];n&&n[i]&&o.body.push(t)}),this.body.length&&f(e.members,function(e,t){var n=r.elements[e];n&&!n[i]&&(t