parallax_content
Advanced tools
Comparing version 1.0.4 to 1.0.5
@@ -7,6 +7,8 @@ 'use strict'; | ||
Parallax Color Bars | ||
Parallax Content | ||
Author: lemehovskiy | ||
Website: https://github.com/lemehovskiy | ||
Version: 1.0.5 | ||
Repo: https://github.com/lemehovskiy/parallaxContent | ||
Demo: https://lemehovskiy.github.io/parallaxContent/demo | ||
@@ -13,0 +15,0 @@ */ |
@@ -1,2 +0,2 @@ | ||
"use strict";var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o};!function(o){"function"==typeof define&&define.amd?define(["jquery"],o):"undefined"!=typeof exports?module.exports=o(require("jquery")):o(jQuery)}(function(o){o.fn.parallaxContent=function(t){var e={init:function(t){var e=o.extend({duration:1.5,shift:10},t),n=0,i=0,r=0;o(window).on("scroll load",function(){n=o(window).scrollTop(),i=o(window).height(),r=n+i}),this.each(function(){var t=o(this),n=t.outerHeight(),a=0,f=0,l=0,u=0,s=t.data("parallax-content"),d=e.duration,p=e.shift;void 0!=s&&(s.hasOwnProperty("duration")&&(d=s.duration),s.hasOwnProperty("shift")&&(p=s.shift)),o(window).on("load resize",function(){l=t.offset(),a=l.top,f=a+i,u=f-a}),o(window).on("scroll resize load",function(){if(r>a&&r<f+n){t.addClass("active");var o=r-l.top-.5*u,e=o/(u/100)*2,i=p/100*e;TweenLite.to(t,d,{y:i+"px"})}else t.removeClass("active")})})}};return e[t]?e[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!==(void 0===t?"undefined":_typeof(t))&&t?void o.error("There is no method with the name "+t+", for jQuery.parallaxContent"):e.init.apply(this,arguments)}}); | ||
"use strict";var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o};!function(o){"function"==typeof define&&define.amd?define(["jquery"],o):"undefined"!=typeof exports?module.exports=o(require("jquery")):o(jQuery)}(function(o){o.fn.parallaxContent=function(t){var e={init:function(t){var e=o.extend({duration:1.5,shift:10},t),n=0,i=0,r=0;o(window).on("scroll load",function(){n=o(window).scrollTop(),i=o(window).height(),r=n+i}),this.each(function(){var t=o(this),n=t.outerHeight(),a=0,f=0,u=0,l=0,d=t.data("parallax-content"),s=e.duration,p=e.shift;void 0!=d&&(d.hasOwnProperty("duration")&&(s=d.duration),d.hasOwnProperty("shift")&&(p=d.shift)),o(window).on("load resize",function(){u=t.offset(),a=u.top,f=a+i,l=f-a}),o(window).on("scroll resize load",function(){if(r>a&&r<f+n){t.addClass("active");var o=r-u.top-.5*l,e=o/(l/100)*2,i=p/100*e;TweenLite.to(t,s,{y:i+"px"})}else t.removeClass("active")})})}};return e[t]?e[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!==("undefined"==typeof t?"undefined":_typeof(t))&&t?void o.error("There is no method with the name "+t+", for jQuery.parallaxContent"):e.init.apply(this,arguments)}}); | ||
//# sourceMappingURL=parallaxContent.min.js.map |
{ | ||
"name": "parallax_content", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "parallax content", | ||
@@ -5,0 +5,0 @@ "main": "build/parallaxContent.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1298339
779