├── .editorconfig
├── .eslintignore
├── .gitignore
├── LICENSE
├── README.md
├── babel.config.js
├── dist
├── demo.html
├── vue-mouse-parallax.common.js
├── vue-mouse-parallax.common.js.map
├── vue-mouse-parallax.umd.js
├── vue-mouse-parallax.umd.js.map
├── vue-mouse-parallax.umd.min.js
└── vue-mouse-parallax.umd.min.js.map
├── package-lock.json
├── package.json
├── src
├── components
│ ├── index.js
│ ├── parallax-container.vue
│ └── parallax-element.vue
└── lib
│ └── throttle.js
└── vue.config.js
/.editorconfig:
--------------------------------------------------------------------------------
1 | [*.{js,jsx,ts,tsx,vue}]
2 | indent_style = space
3 | indent_size = 2
4 | end_of_line = lf
5 | trim_trailing_whitespace = true
6 | insert_final_newline = true
7 | max_line_length = 100
8 |
--------------------------------------------------------------------------------
/.eslintignore:
--------------------------------------------------------------------------------
1 | dist/*
2 |
3 | democomponents/*
4 |
5 | App.vue
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | node_modules
3 |
4 | # local env files
5 | .env.local
6 | .env.*.local
7 |
8 | # Log files
9 | npm-debug.log*
10 | yarn-debug.log*
11 | yarn-error.log*
12 |
13 | # Editor directories and files
14 | .idea
15 | .vscode
16 | *.suo
17 | *.ntvs*
18 | *.njsproj
19 | *.sln
20 | *.sw?
21 |
22 | publish.txt
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2018 Amine Bouyarmane
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # vue-mouse-parallax
2 |
3 | [ ](https://www.npmjs.com/package/vue-mouse-parallax)
4 | [](https://vuejs.org/)
5 |
6 | vue-mouse-parallax has been deprecated. Use [vue-kinesis](https://www.npmjs.com/package/vue-kinesis) instead.
7 |
8 | ## Demo
9 |
10 | [Kinesis](https://aminerman.com/kinesis/)
11 |
12 |
13 | ## License
14 |
15 | [MIT](http://opensource.org/licenses/MIT)
--------------------------------------------------------------------------------
/babel.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | presets: [
3 | '@vue/app',
4 | ],
5 | };
6 |
--------------------------------------------------------------------------------
/dist/demo.html:
--------------------------------------------------------------------------------
1 |
2 |
vue-mouse-parallax demo
3 |
4 |
5 |
6 |
7 |
8 |
11 |
--------------------------------------------------------------------------------
/dist/vue-mouse-parallax.common.js:
--------------------------------------------------------------------------------
1 | module.exports =
2 | /******/ (function(modules) { // webpackBootstrap
3 | /******/ // The module cache
4 | /******/ var installedModules = {};
5 | /******/
6 | /******/ // The require function
7 | /******/ function __webpack_require__(moduleId) {
8 | /******/
9 | /******/ // Check if module is in cache
10 | /******/ if(installedModules[moduleId]) {
11 | /******/ return installedModules[moduleId].exports;
12 | /******/ }
13 | /******/ // Create a new module (and put it into the cache)
14 | /******/ var module = installedModules[moduleId] = {
15 | /******/ i: moduleId,
16 | /******/ l: false,
17 | /******/ exports: {}
18 | /******/ };
19 | /******/
20 | /******/ // Execute the module function
21 | /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
22 | /******/
23 | /******/ // Flag the module as loaded
24 | /******/ module.l = true;
25 | /******/
26 | /******/ // Return the exports of the module
27 | /******/ return module.exports;
28 | /******/ }
29 | /******/
30 | /******/
31 | /******/ // expose the modules object (__webpack_modules__)
32 | /******/ __webpack_require__.m = modules;
33 | /******/
34 | /******/ // expose the module cache
35 | /******/ __webpack_require__.c = installedModules;
36 | /******/
37 | /******/ // define getter function for harmony exports
38 | /******/ __webpack_require__.d = function(exports, name, getter) {
39 | /******/ if(!__webpack_require__.o(exports, name)) {
40 | /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
41 | /******/ }
42 | /******/ };
43 | /******/
44 | /******/ // define __esModule on exports
45 | /******/ __webpack_require__.r = function(exports) {
46 | /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
47 | /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
48 | /******/ }
49 | /******/ Object.defineProperty(exports, '__esModule', { value: true });
50 | /******/ };
51 | /******/
52 | /******/ // create a fake namespace object
53 | /******/ // mode & 1: value is a module id, require it
54 | /******/ // mode & 2: merge all properties of value into the ns
55 | /******/ // mode & 4: return value when already ns object
56 | /******/ // mode & 8|1: behave like require
57 | /******/ __webpack_require__.t = function(value, mode) {
58 | /******/ if(mode & 1) value = __webpack_require__(value);
59 | /******/ if(mode & 8) return value;
60 | /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
61 | /******/ var ns = Object.create(null);
62 | /******/ __webpack_require__.r(ns);
63 | /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
64 | /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
65 | /******/ return ns;
66 | /******/ };
67 | /******/
68 | /******/ // getDefaultExport function for compatibility with non-harmony modules
69 | /******/ __webpack_require__.n = function(module) {
70 | /******/ var getter = module && module.__esModule ?
71 | /******/ function getDefault() { return module['default']; } :
72 | /******/ function getModuleExports() { return module; };
73 | /******/ __webpack_require__.d(getter, 'a', getter);
74 | /******/ return getter;
75 | /******/ };
76 | /******/
77 | /******/ // Object.prototype.hasOwnProperty.call
78 | /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
79 | /******/
80 | /******/ // __webpack_public_path__
81 | /******/ __webpack_require__.p = "";
82 | /******/
83 | /******/
84 | /******/ // Load entry module and return exports
85 | /******/ return __webpack_require__(__webpack_require__.s = "fae3");
86 | /******/ })
87 | /************************************************************************/
88 | /******/ ({
89 |
90 | /***/ "0d58":
91 | /***/ (function(module, exports, __webpack_require__) {
92 |
93 | // 19.1.2.14 / 15.2.3.14 Object.keys(O)
94 | var $keys = __webpack_require__("ce10");
95 | var enumBugKeys = __webpack_require__("e11e");
96 |
97 | module.exports = Object.keys || function keys(O) {
98 | return $keys(O, enumBugKeys);
99 | };
100 |
101 |
102 | /***/ }),
103 |
104 | /***/ "11e9":
105 | /***/ (function(module, exports, __webpack_require__) {
106 |
107 | var pIE = __webpack_require__("52a7");
108 | var createDesc = __webpack_require__("4630");
109 | var toIObject = __webpack_require__("6821");
110 | var toPrimitive = __webpack_require__("6a99");
111 | var has = __webpack_require__("69a8");
112 | var IE8_DOM_DEFINE = __webpack_require__("c69a");
113 | var gOPD = Object.getOwnPropertyDescriptor;
114 |
115 | exports.f = __webpack_require__("9e1e") ? gOPD : function getOwnPropertyDescriptor(O, P) {
116 | O = toIObject(O);
117 | P = toPrimitive(P, true);
118 | if (IE8_DOM_DEFINE) try {
119 | return gOPD(O, P);
120 | } catch (e) { /* empty */ }
121 | if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]);
122 | };
123 |
124 |
125 | /***/ }),
126 |
127 | /***/ "1495":
128 | /***/ (function(module, exports, __webpack_require__) {
129 |
130 | var dP = __webpack_require__("86cc");
131 | var anObject = __webpack_require__("cb7c");
132 | var getKeys = __webpack_require__("0d58");
133 |
134 | module.exports = __webpack_require__("9e1e") ? Object.defineProperties : function defineProperties(O, Properties) {
135 | anObject(O);
136 | var keys = getKeys(Properties);
137 | var length = keys.length;
138 | var i = 0;
139 | var P;
140 | while (length > i) dP.f(O, P = keys[i++], Properties[P]);
141 | return O;
142 | };
143 |
144 |
145 | /***/ }),
146 |
147 | /***/ "230e":
148 | /***/ (function(module, exports, __webpack_require__) {
149 |
150 | var isObject = __webpack_require__("d3f4");
151 | var document = __webpack_require__("7726").document;
152 | // typeof document.createElement is 'object' in old IE
153 | var is = isObject(document) && isObject(document.createElement);
154 | module.exports = function (it) {
155 | return is ? document.createElement(it) : {};
156 | };
157 |
158 |
159 | /***/ }),
160 |
161 | /***/ "2aba":
162 | /***/ (function(module, exports, __webpack_require__) {
163 |
164 | var global = __webpack_require__("7726");
165 | var hide = __webpack_require__("32e9");
166 | var has = __webpack_require__("69a8");
167 | var SRC = __webpack_require__("ca5a")('src');
168 | var $toString = __webpack_require__("fa5b");
169 | var TO_STRING = 'toString';
170 | var TPL = ('' + $toString).split(TO_STRING);
171 |
172 | __webpack_require__("8378").inspectSource = function (it) {
173 | return $toString.call(it);
174 | };
175 |
176 | (module.exports = function (O, key, val, safe) {
177 | var isFunction = typeof val == 'function';
178 | if (isFunction) has(val, 'name') || hide(val, 'name', key);
179 | if (O[key] === val) return;
180 | if (isFunction) has(val, SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key)));
181 | if (O === global) {
182 | O[key] = val;
183 | } else if (!safe) {
184 | delete O[key];
185 | hide(O, key, val);
186 | } else if (O[key]) {
187 | O[key] = val;
188 | } else {
189 | hide(O, key, val);
190 | }
191 | // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
192 | })(Function.prototype, TO_STRING, function toString() {
193 | return typeof this == 'function' && this[SRC] || $toString.call(this);
194 | });
195 |
196 |
197 | /***/ }),
198 |
199 | /***/ "2aeb":
200 | /***/ (function(module, exports, __webpack_require__) {
201 |
202 | // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
203 | var anObject = __webpack_require__("cb7c");
204 | var dPs = __webpack_require__("1495");
205 | var enumBugKeys = __webpack_require__("e11e");
206 | var IE_PROTO = __webpack_require__("613b")('IE_PROTO');
207 | var Empty = function () { /* empty */ };
208 | var PROTOTYPE = 'prototype';
209 |
210 | // Create object with fake `null` prototype: use iframe Object with cleared prototype
211 | var createDict = function () {
212 | // Thrash, waste and sodomy: IE GC bug
213 | var iframe = __webpack_require__("230e")('iframe');
214 | var i = enumBugKeys.length;
215 | var lt = '<';
216 | var gt = '>';
217 | var iframeDocument;
218 | iframe.style.display = 'none';
219 | __webpack_require__("fab2").appendChild(iframe);
220 | iframe.src = 'javascript:'; // eslint-disable-line no-script-url
221 | // createDict = iframe.contentWindow.Object;
222 | // html.removeChild(iframe);
223 | iframeDocument = iframe.contentWindow.document;
224 | iframeDocument.open();
225 | iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);
226 | iframeDocument.close();
227 | createDict = iframeDocument.F;
228 | while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];
229 | return createDict();
230 | };
231 |
232 | module.exports = Object.create || function create(O, Properties) {
233 | var result;
234 | if (O !== null) {
235 | Empty[PROTOTYPE] = anObject(O);
236 | result = new Empty();
237 | Empty[PROTOTYPE] = null;
238 | // add "__proto__" for Object.getPrototypeOf polyfill
239 | result[IE_PROTO] = O;
240 | } else result = createDict();
241 | return Properties === undefined ? result : dPs(result, Properties);
242 | };
243 |
244 |
245 | /***/ }),
246 |
247 | /***/ "2d00":
248 | /***/ (function(module, exports) {
249 |
250 | module.exports = false;
251 |
252 |
253 | /***/ }),
254 |
255 | /***/ "2d95":
256 | /***/ (function(module, exports) {
257 |
258 | var toString = {}.toString;
259 |
260 | module.exports = function (it) {
261 | return toString.call(it).slice(8, -1);
262 | };
263 |
264 |
265 | /***/ }),
266 |
267 | /***/ "32e9":
268 | /***/ (function(module, exports, __webpack_require__) {
269 |
270 | var dP = __webpack_require__("86cc");
271 | var createDesc = __webpack_require__("4630");
272 | module.exports = __webpack_require__("9e1e") ? function (object, key, value) {
273 | return dP.f(object, key, createDesc(1, value));
274 | } : function (object, key, value) {
275 | object[key] = value;
276 | return object;
277 | };
278 |
279 |
280 | /***/ }),
281 |
282 | /***/ "4588":
283 | /***/ (function(module, exports) {
284 |
285 | // 7.1.4 ToInteger
286 | var ceil = Math.ceil;
287 | var floor = Math.floor;
288 | module.exports = function (it) {
289 | return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);
290 | };
291 |
292 |
293 | /***/ }),
294 |
295 | /***/ "4630":
296 | /***/ (function(module, exports) {
297 |
298 | module.exports = function (bitmap, value) {
299 | return {
300 | enumerable: !(bitmap & 1),
301 | configurable: !(bitmap & 2),
302 | writable: !(bitmap & 4),
303 | value: value
304 | };
305 | };
306 |
307 |
308 | /***/ }),
309 |
310 | /***/ "52a7":
311 | /***/ (function(module, exports) {
312 |
313 | exports.f = {}.propertyIsEnumerable;
314 |
315 |
316 | /***/ }),
317 |
318 | /***/ "5537":
319 | /***/ (function(module, exports, __webpack_require__) {
320 |
321 | var core = __webpack_require__("8378");
322 | var global = __webpack_require__("7726");
323 | var SHARED = '__core-js_shared__';
324 | var store = global[SHARED] || (global[SHARED] = {});
325 |
326 | (module.exports = function (key, value) {
327 | return store[key] || (store[key] = value !== undefined ? value : {});
328 | })('versions', []).push({
329 | version: core.version,
330 | mode: __webpack_require__("2d00") ? 'pure' : 'global',
331 | copyright: '© 2019 Denis Pushkarev (zloirock.ru)'
332 | });
333 |
334 |
335 | /***/ }),
336 |
337 | /***/ "5ca1":
338 | /***/ (function(module, exports, __webpack_require__) {
339 |
340 | var global = __webpack_require__("7726");
341 | var core = __webpack_require__("8378");
342 | var hide = __webpack_require__("32e9");
343 | var redefine = __webpack_require__("2aba");
344 | var ctx = __webpack_require__("9b43");
345 | var PROTOTYPE = 'prototype';
346 |
347 | var $export = function (type, name, source) {
348 | var IS_FORCED = type & $export.F;
349 | var IS_GLOBAL = type & $export.G;
350 | var IS_STATIC = type & $export.S;
351 | var IS_PROTO = type & $export.P;
352 | var IS_BIND = type & $export.B;
353 | var target = IS_GLOBAL ? global : IS_STATIC ? global[name] || (global[name] = {}) : (global[name] || {})[PROTOTYPE];
354 | var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});
355 | var expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {});
356 | var key, own, out, exp;
357 | if (IS_GLOBAL) source = name;
358 | for (key in source) {
359 | // contains in native
360 | own = !IS_FORCED && target && target[key] !== undefined;
361 | // export native or passed
362 | out = (own ? target : source)[key];
363 | // bind timers to global for call from export context
364 | exp = IS_BIND && own ? ctx(out, global) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;
365 | // extend global
366 | if (target) redefine(target, key, out, type & $export.U);
367 | // export
368 | if (exports[key] != out) hide(exports, key, exp);
369 | if (IS_PROTO && expProto[key] != out) expProto[key] = out;
370 | }
371 | };
372 | global.core = core;
373 | // type bitmap
374 | $export.F = 1; // forced
375 | $export.G = 2; // global
376 | $export.S = 4; // static
377 | $export.P = 8; // proto
378 | $export.B = 16; // bind
379 | $export.W = 32; // wrap
380 | $export.U = 64; // safe
381 | $export.R = 128; // real proto method for `library`
382 | module.exports = $export;
383 |
384 |
385 | /***/ }),
386 |
387 | /***/ "5dbc":
388 | /***/ (function(module, exports, __webpack_require__) {
389 |
390 | var isObject = __webpack_require__("d3f4");
391 | var setPrototypeOf = __webpack_require__("8b97").set;
392 | module.exports = function (that, target, C) {
393 | var S = target.constructor;
394 | var P;
395 | if (S !== C && typeof S == 'function' && (P = S.prototype) !== C.prototype && isObject(P) && setPrototypeOf) {
396 | setPrototypeOf(that, P);
397 | } return that;
398 | };
399 |
400 |
401 | /***/ }),
402 |
403 | /***/ "613b":
404 | /***/ (function(module, exports, __webpack_require__) {
405 |
406 | var shared = __webpack_require__("5537")('keys');
407 | var uid = __webpack_require__("ca5a");
408 | module.exports = function (key) {
409 | return shared[key] || (shared[key] = uid(key));
410 | };
411 |
412 |
413 | /***/ }),
414 |
415 | /***/ "626a":
416 | /***/ (function(module, exports, __webpack_require__) {
417 |
418 | // fallback for non-array-like ES3 and non-enumerable old V8 strings
419 | var cof = __webpack_require__("2d95");
420 | // eslint-disable-next-line no-prototype-builtins
421 | module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
422 | return cof(it) == 'String' ? it.split('') : Object(it);
423 | };
424 |
425 |
426 | /***/ }),
427 |
428 | /***/ "6821":
429 | /***/ (function(module, exports, __webpack_require__) {
430 |
431 | // to indexed object, toObject with fallback for non-array-like ES3 strings
432 | var IObject = __webpack_require__("626a");
433 | var defined = __webpack_require__("be13");
434 | module.exports = function (it) {
435 | return IObject(defined(it));
436 | };
437 |
438 |
439 | /***/ }),
440 |
441 | /***/ "69a8":
442 | /***/ (function(module, exports) {
443 |
444 | var hasOwnProperty = {}.hasOwnProperty;
445 | module.exports = function (it, key) {
446 | return hasOwnProperty.call(it, key);
447 | };
448 |
449 |
450 | /***/ }),
451 |
452 | /***/ "6a99":
453 | /***/ (function(module, exports, __webpack_require__) {
454 |
455 | // 7.1.1 ToPrimitive(input [, PreferredType])
456 | var isObject = __webpack_require__("d3f4");
457 | // instead of the ES6 spec version, we didn't implement @@toPrimitive case
458 | // and the second argument - flag - preferred type is a string
459 | module.exports = function (it, S) {
460 | if (!isObject(it)) return it;
461 | var fn, val;
462 | if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
463 | if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;
464 | if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
465 | throw TypeError("Can't convert object to primitive value");
466 | };
467 |
468 |
469 | /***/ }),
470 |
471 | /***/ "7726":
472 | /***/ (function(module, exports) {
473 |
474 | // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
475 | var global = module.exports = typeof window != 'undefined' && window.Math == Math
476 | ? window : typeof self != 'undefined' && self.Math == Math ? self
477 | // eslint-disable-next-line no-new-func
478 | : Function('return this')();
479 | if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef
480 |
481 |
482 | /***/ }),
483 |
484 | /***/ "77f1":
485 | /***/ (function(module, exports, __webpack_require__) {
486 |
487 | var toInteger = __webpack_require__("4588");
488 | var max = Math.max;
489 | var min = Math.min;
490 | module.exports = function (index, length) {
491 | index = toInteger(index);
492 | return index < 0 ? max(index + length, 0) : min(index, length);
493 | };
494 |
495 |
496 | /***/ }),
497 |
498 | /***/ "79e5":
499 | /***/ (function(module, exports) {
500 |
501 | module.exports = function (exec) {
502 | try {
503 | return !!exec();
504 | } catch (e) {
505 | return true;
506 | }
507 | };
508 |
509 |
510 | /***/ }),
511 |
512 | /***/ "8378":
513 | /***/ (function(module, exports) {
514 |
515 | var core = module.exports = { version: '2.6.9' };
516 | if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef
517 |
518 |
519 | /***/ }),
520 |
521 | /***/ "86cc":
522 | /***/ (function(module, exports, __webpack_require__) {
523 |
524 | var anObject = __webpack_require__("cb7c");
525 | var IE8_DOM_DEFINE = __webpack_require__("c69a");
526 | var toPrimitive = __webpack_require__("6a99");
527 | var dP = Object.defineProperty;
528 |
529 | exports.f = __webpack_require__("9e1e") ? Object.defineProperty : function defineProperty(O, P, Attributes) {
530 | anObject(O);
531 | P = toPrimitive(P, true);
532 | anObject(Attributes);
533 | if (IE8_DOM_DEFINE) try {
534 | return dP(O, P, Attributes);
535 | } catch (e) { /* empty */ }
536 | if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');
537 | if ('value' in Attributes) O[P] = Attributes.value;
538 | return O;
539 | };
540 |
541 |
542 | /***/ }),
543 |
544 | /***/ "8b97":
545 | /***/ (function(module, exports, __webpack_require__) {
546 |
547 | // Works with __proto__ only. Old v8 can't work with null proto objects.
548 | /* eslint-disable no-proto */
549 | var isObject = __webpack_require__("d3f4");
550 | var anObject = __webpack_require__("cb7c");
551 | var check = function (O, proto) {
552 | anObject(O);
553 | if (!isObject(proto) && proto !== null) throw TypeError(proto + ": can't set as prototype!");
554 | };
555 | module.exports = {
556 | set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line
557 | function (test, buggy, set) {
558 | try {
559 | set = __webpack_require__("9b43")(Function.call, __webpack_require__("11e9").f(Object.prototype, '__proto__').set, 2);
560 | set(test, []);
561 | buggy = !(test instanceof Array);
562 | } catch (e) { buggy = true; }
563 | return function setPrototypeOf(O, proto) {
564 | check(O, proto);
565 | if (buggy) O.__proto__ = proto;
566 | else set(O, proto);
567 | return O;
568 | };
569 | }({}, false) : undefined),
570 | check: check
571 | };
572 |
573 |
574 | /***/ }),
575 |
576 | /***/ "9093":
577 | /***/ (function(module, exports, __webpack_require__) {
578 |
579 | // 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)
580 | var $keys = __webpack_require__("ce10");
581 | var hiddenKeys = __webpack_require__("e11e").concat('length', 'prototype');
582 |
583 | exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
584 | return $keys(O, hiddenKeys);
585 | };
586 |
587 |
588 | /***/ }),
589 |
590 | /***/ "9b43":
591 | /***/ (function(module, exports, __webpack_require__) {
592 |
593 | // optional / simple context binding
594 | var aFunction = __webpack_require__("d8e8");
595 | module.exports = function (fn, that, length) {
596 | aFunction(fn);
597 | if (that === undefined) return fn;
598 | switch (length) {
599 | case 1: return function (a) {
600 | return fn.call(that, a);
601 | };
602 | case 2: return function (a, b) {
603 | return fn.call(that, a, b);
604 | };
605 | case 3: return function (a, b, c) {
606 | return fn.call(that, a, b, c);
607 | };
608 | }
609 | return function (/* ...args */) {
610 | return fn.apply(that, arguments);
611 | };
612 | };
613 |
614 |
615 | /***/ }),
616 |
617 | /***/ "9def":
618 | /***/ (function(module, exports, __webpack_require__) {
619 |
620 | // 7.1.15 ToLength
621 | var toInteger = __webpack_require__("4588");
622 | var min = Math.min;
623 | module.exports = function (it) {
624 | return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991
625 | };
626 |
627 |
628 | /***/ }),
629 |
630 | /***/ "9e1e":
631 | /***/ (function(module, exports, __webpack_require__) {
632 |
633 | // Thank's IE8 for his funny defineProperty
634 | module.exports = !__webpack_require__("79e5")(function () {
635 | return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
636 | });
637 |
638 |
639 | /***/ }),
640 |
641 | /***/ "aa77":
642 | /***/ (function(module, exports, __webpack_require__) {
643 |
644 | var $export = __webpack_require__("5ca1");
645 | var defined = __webpack_require__("be13");
646 | var fails = __webpack_require__("79e5");
647 | var spaces = __webpack_require__("fdef");
648 | var space = '[' + spaces + ']';
649 | var non = '\u200b\u0085';
650 | var ltrim = RegExp('^' + space + space + '*');
651 | var rtrim = RegExp(space + space + '*$');
652 |
653 | var exporter = function (KEY, exec, ALIAS) {
654 | var exp = {};
655 | var FORCE = fails(function () {
656 | return !!spaces[KEY]() || non[KEY]() != non;
657 | });
658 | var fn = exp[KEY] = FORCE ? exec(trim) : spaces[KEY];
659 | if (ALIAS) exp[ALIAS] = fn;
660 | $export($export.P + $export.F * FORCE, 'String', exp);
661 | };
662 |
663 | // 1 -> String#trimLeft
664 | // 2 -> String#trimRight
665 | // 3 -> String#trim
666 | var trim = exporter.trim = function (string, TYPE) {
667 | string = String(defined(string));
668 | if (TYPE & 1) string = string.replace(ltrim, '');
669 | if (TYPE & 2) string = string.replace(rtrim, '');
670 | return string;
671 | };
672 |
673 | module.exports = exporter;
674 |
675 |
676 | /***/ }),
677 |
678 | /***/ "be13":
679 | /***/ (function(module, exports) {
680 |
681 | // 7.2.1 RequireObjectCoercible(argument)
682 | module.exports = function (it) {
683 | if (it == undefined) throw TypeError("Can't call method on " + it);
684 | return it;
685 | };
686 |
687 |
688 | /***/ }),
689 |
690 | /***/ "c366":
691 | /***/ (function(module, exports, __webpack_require__) {
692 |
693 | // false -> Array#indexOf
694 | // true -> Array#includes
695 | var toIObject = __webpack_require__("6821");
696 | var toLength = __webpack_require__("9def");
697 | var toAbsoluteIndex = __webpack_require__("77f1");
698 | module.exports = function (IS_INCLUDES) {
699 | return function ($this, el, fromIndex) {
700 | var O = toIObject($this);
701 | var length = toLength(O.length);
702 | var index = toAbsoluteIndex(fromIndex, length);
703 | var value;
704 | // Array#includes uses SameValueZero equality algorithm
705 | // eslint-disable-next-line no-self-compare
706 | if (IS_INCLUDES && el != el) while (length > index) {
707 | value = O[index++];
708 | // eslint-disable-next-line no-self-compare
709 | if (value != value) return true;
710 | // Array#indexOf ignores holes, Array#includes - not
711 | } else for (;length > index; index++) if (IS_INCLUDES || index in O) {
712 | if (O[index] === el) return IS_INCLUDES || index || 0;
713 | } return !IS_INCLUDES && -1;
714 | };
715 | };
716 |
717 |
718 | /***/ }),
719 |
720 | /***/ "c5f6":
721 | /***/ (function(module, exports, __webpack_require__) {
722 |
723 | "use strict";
724 |
725 | var global = __webpack_require__("7726");
726 | var has = __webpack_require__("69a8");
727 | var cof = __webpack_require__("2d95");
728 | var inheritIfRequired = __webpack_require__("5dbc");
729 | var toPrimitive = __webpack_require__("6a99");
730 | var fails = __webpack_require__("79e5");
731 | var gOPN = __webpack_require__("9093").f;
732 | var gOPD = __webpack_require__("11e9").f;
733 | var dP = __webpack_require__("86cc").f;
734 | var $trim = __webpack_require__("aa77").trim;
735 | var NUMBER = 'Number';
736 | var $Number = global[NUMBER];
737 | var Base = $Number;
738 | var proto = $Number.prototype;
739 | // Opera ~12 has broken Object#toString
740 | var BROKEN_COF = cof(__webpack_require__("2aeb")(proto)) == NUMBER;
741 | var TRIM = 'trim' in String.prototype;
742 |
743 | // 7.1.3 ToNumber(argument)
744 | var toNumber = function (argument) {
745 | var it = toPrimitive(argument, false);
746 | if (typeof it == 'string' && it.length > 2) {
747 | it = TRIM ? it.trim() : $trim(it, 3);
748 | var first = it.charCodeAt(0);
749 | var third, radix, maxCode;
750 | if (first === 43 || first === 45) {
751 | third = it.charCodeAt(2);
752 | if (third === 88 || third === 120) return NaN; // Number('+0x1') should be NaN, old V8 fix
753 | } else if (first === 48) {
754 | switch (it.charCodeAt(1)) {
755 | case 66: case 98: radix = 2; maxCode = 49; break; // fast equal /^0b[01]+$/i
756 | case 79: case 111: radix = 8; maxCode = 55; break; // fast equal /^0o[0-7]+$/i
757 | default: return +it;
758 | }
759 | for (var digits = it.slice(2), i = 0, l = digits.length, code; i < l; i++) {
760 | code = digits.charCodeAt(i);
761 | // parseInt parses a string to a first unavailable symbol
762 | // but ToNumber should return NaN if a string contains unavailable symbols
763 | if (code < 48 || code > maxCode) return NaN;
764 | } return parseInt(digits, radix);
765 | }
766 | } return +it;
767 | };
768 |
769 | if (!$Number(' 0o1') || !$Number('0b1') || $Number('+0x1')) {
770 | $Number = function Number(value) {
771 | var it = arguments.length < 1 ? 0 : value;
772 | var that = this;
773 | return that instanceof $Number
774 | // check on 1..constructor(foo) case
775 | && (BROKEN_COF ? fails(function () { proto.valueOf.call(that); }) : cof(that) != NUMBER)
776 | ? inheritIfRequired(new Base(toNumber(it)), that, $Number) : toNumber(it);
777 | };
778 | for (var keys = __webpack_require__("9e1e") ? gOPN(Base) : (
779 | // ES3:
780 | 'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' +
781 | // ES6 (in case, if modules with ES6 Number statics required before):
782 | 'EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,' +
783 | 'MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger'
784 | ).split(','), j = 0, key; keys.length > j; j++) {
785 | if (has(Base, key = keys[j]) && !has($Number, key)) {
786 | dP($Number, key, gOPD(Base, key));
787 | }
788 | }
789 | $Number.prototype = proto;
790 | proto.constructor = $Number;
791 | __webpack_require__("2aba")(global, NUMBER, $Number);
792 | }
793 |
794 |
795 | /***/ }),
796 |
797 | /***/ "c69a":
798 | /***/ (function(module, exports, __webpack_require__) {
799 |
800 | module.exports = !__webpack_require__("9e1e") && !__webpack_require__("79e5")(function () {
801 | return Object.defineProperty(__webpack_require__("230e")('div'), 'a', { get: function () { return 7; } }).a != 7;
802 | });
803 |
804 |
805 | /***/ }),
806 |
807 | /***/ "ca5a":
808 | /***/ (function(module, exports) {
809 |
810 | var id = 0;
811 | var px = Math.random();
812 | module.exports = function (key) {
813 | return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));
814 | };
815 |
816 |
817 | /***/ }),
818 |
819 | /***/ "cb7c":
820 | /***/ (function(module, exports, __webpack_require__) {
821 |
822 | var isObject = __webpack_require__("d3f4");
823 | module.exports = function (it) {
824 | if (!isObject(it)) throw TypeError(it + ' is not an object!');
825 | return it;
826 | };
827 |
828 |
829 | /***/ }),
830 |
831 | /***/ "ce10":
832 | /***/ (function(module, exports, __webpack_require__) {
833 |
834 | var has = __webpack_require__("69a8");
835 | var toIObject = __webpack_require__("6821");
836 | var arrayIndexOf = __webpack_require__("c366")(false);
837 | var IE_PROTO = __webpack_require__("613b")('IE_PROTO');
838 |
839 | module.exports = function (object, names) {
840 | var O = toIObject(object);
841 | var i = 0;
842 | var result = [];
843 | var key;
844 | for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key);
845 | // Don't enum bug & hidden keys
846 | while (names.length > i) if (has(O, key = names[i++])) {
847 | ~arrayIndexOf(result, key) || result.push(key);
848 | }
849 | return result;
850 | };
851 |
852 |
853 | /***/ }),
854 |
855 | /***/ "d3f4":
856 | /***/ (function(module, exports) {
857 |
858 | module.exports = function (it) {
859 | return typeof it === 'object' ? it !== null : typeof it === 'function';
860 | };
861 |
862 |
863 | /***/ }),
864 |
865 | /***/ "d8e8":
866 | /***/ (function(module, exports) {
867 |
868 | module.exports = function (it) {
869 | if (typeof it != 'function') throw TypeError(it + ' is not a function!');
870 | return it;
871 | };
872 |
873 |
874 | /***/ }),
875 |
876 | /***/ "e11e":
877 | /***/ (function(module, exports) {
878 |
879 | // IE 8- don't enum bug keys
880 | module.exports = (
881 | 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'
882 | ).split(',');
883 |
884 |
885 | /***/ }),
886 |
887 | /***/ "f6fd":
888 | /***/ (function(module, exports) {
889 |
890 | // document.currentScript polyfill by Adam Miller
891 |
892 | // MIT license
893 |
894 | (function(document){
895 | var currentScript = "currentScript",
896 | scripts = document.getElementsByTagName('script'); // Live NodeList collection
897 |
898 | // If browser needs currentScript polyfill, add get currentScript() to the document object
899 | if (!(currentScript in document)) {
900 | Object.defineProperty(document, currentScript, {
901 | get: function(){
902 |
903 | // IE 6-10 supports script readyState
904 | // IE 10+ support stack trace
905 | try { throw new Error(); }
906 | catch (err) {
907 |
908 | // Find the second match for the "at" string to get file src url from stack.
909 | // Specifically works with the format of stack traces in IE.
910 | var i, res = ((/.*at [^\(]*\((.*):.+:.+\)$/ig).exec(err.stack) || [false])[1];
911 |
912 | // For all scripts on the page, if src matches or if ready state is interactive, return the script tag
913 | for(i in scripts){
914 | if(scripts[i].src == res || scripts[i].readyState == "interactive"){
915 | return scripts[i];
916 | }
917 | }
918 |
919 | // If no match, return null
920 | return null;
921 | }
922 | }
923 | });
924 | }
925 | })(document);
926 |
927 |
928 | /***/ }),
929 |
930 | /***/ "fa5b":
931 | /***/ (function(module, exports, __webpack_require__) {
932 |
933 | module.exports = __webpack_require__("5537")('native-function-to-string', Function.toString);
934 |
935 |
936 | /***/ }),
937 |
938 | /***/ "fab2":
939 | /***/ (function(module, exports, __webpack_require__) {
940 |
941 | var document = __webpack_require__("7726").document;
942 | module.exports = document && document.documentElement;
943 |
944 |
945 | /***/ }),
946 |
947 | /***/ "fae3":
948 | /***/ (function(module, __webpack_exports__, __webpack_require__) {
949 |
950 | "use strict";
951 | __webpack_require__.r(__webpack_exports__);
952 |
953 | // CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js
954 | // This file is imported into lib/wc client bundles.
955 |
956 | if (typeof window !== 'undefined') {
957 | if (true) {
958 | __webpack_require__("f6fd")
959 | }
960 |
961 | var i
962 | if ((i = window.document.currentScript) && (i = i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))) {
963 | __webpack_require__.p = i[1] // eslint-disable-line
964 | }
965 | }
966 |
967 | // Indicate to webpack that this file can be concatenated
968 | /* harmony default export */ var setPublicPath = (null);
969 |
970 | // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"4f429782-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/parallax-container.vue?vue&type=template&id=5ff65e2c&
971 | var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c(_vm.tag,{tag:"component",style:({perspective: (_vm.perspective + "px")}),on:{"mousemove":_vm.getMousePosition,"mouseleave":_vm.parallaxStop,"mouseenter":_vm.parallaxStart}},[_vm._t("default")],2)}
972 | var staticRenderFns = []
973 |
974 |
975 | // CONCATENATED MODULE: ./src/components/parallax-container.vue?vue&type=template&id=5ff65e2c&
976 |
977 | // EXTERNAL MODULE: ./node_modules/core-js/modules/es6.number.constructor.js
978 | var es6_number_constructor = __webpack_require__("c5f6");
979 |
980 | // CONCATENATED MODULE: ./src/lib/throttle.js
981 | function throttle(callback, delay) {
982 | var last;
983 | var timer; // eslint-disable-next-line func-names
984 |
985 | return function () {
986 | var context = this;
987 | var newDelay = this.animationDuration > 1000 ? delay : this.animationDuration / 10;
988 | var now = +new Date(); // eslint-disable-next-line prefer-rest-params
989 |
990 | var args = arguments;
991 |
992 | if (last && now < last + newDelay) {
993 | clearTimeout(timer);
994 | timer = setTimeout(function () {
995 | last = now;
996 | callback.apply(context, args);
997 | }, newDelay);
998 | } else {
999 | last = now;
1000 | callback.apply(context, args);
1001 | }
1002 | };
1003 | }
1004 | // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/parallax-container.vue?vue&type=script&lang=js&
1005 |
1006 | //
1007 | //
1008 | //
1009 | //
1010 | //
1011 | //
1012 | //
1013 | //
1014 | //
1015 | //
1016 | //
1017 | //
1018 |
1019 | /* harmony default export */ var parallax_containervue_type_script_lang_js_ = ({
1020 | name: 'ParallaxContainer',
1021 | provide: function provide() {
1022 | var _this = this;
1023 |
1024 | var context = {};
1025 | Object.defineProperty(context, 'mousePosition', {
1026 | enumerable: true,
1027 | get: function get() {
1028 | return _this.mousePosition;
1029 | }
1030 | });
1031 | Object.defineProperty(context, 'isHovering', {
1032 | enumerable: true,
1033 | get: function get() {
1034 | return _this.isHovering;
1035 | }
1036 | });
1037 | Object.defineProperty(context, 'isHoverable', {
1038 | enumerable: true,
1039 | get: function get() {
1040 | return _this.isHoverable;
1041 | }
1042 | });
1043 | Object.defineProperty(context, 'didEnter', {
1044 | enumerable: true,
1045 | get: function get() {
1046 | return _this.didEnter;
1047 | }
1048 | });
1049 | Object.defineProperty(context, 'animationDuration', {
1050 | enumerable: true,
1051 | get: function get() {
1052 | return _this.animationDuration;
1053 | }
1054 | });
1055 | Object.defineProperty(context, 'easing', {
1056 | enumerable: true,
1057 | get: function get() {
1058 | return _this.easing;
1059 | }
1060 | });
1061 | Object.defineProperty(context, 'shape', {
1062 | enumerable: true,
1063 | get: function get() {
1064 | return _this.shape;
1065 | }
1066 | });
1067 | return {
1068 | context: context
1069 | };
1070 | },
1071 | data: function data() {
1072 | return {
1073 | mousePosition: {
1074 | x: 0,
1075 | y: 0
1076 | },
1077 | isHovering: false,
1078 | isHoverable: false,
1079 | attemptedHover: false,
1080 | didEnter: false,
1081 | shape: null
1082 | };
1083 | },
1084 | props: {
1085 | animationDuration: {
1086 | type: Number,
1087 | default: 1000
1088 | },
1089 | easing: {
1090 | type: String,
1091 | default: 'cubic-bezier(0.23, 1, 0.32, 1)'
1092 | },
1093 | tag: {
1094 | type: String,
1095 | default: 'div'
1096 | },
1097 | perspective: {
1098 | type: Number,
1099 | default: 1000
1100 | }
1101 | },
1102 | mounted: function mounted() {
1103 | var _this2 = this;
1104 |
1105 | this.shape = this.$el.getBoundingClientRect();
1106 | setTimeout(function () {
1107 | _this2.isHoverable = true;
1108 |
1109 | if (_this2.attemptedHover) {
1110 | _this2.parallaxStart();
1111 | }
1112 | }, 100);
1113 | },
1114 | methods: {
1115 | getRelativePosition: function getRelativePosition() {
1116 | var shape = this.$el.getBoundingClientRect();
1117 | return {
1118 | top: shape.top,
1119 | left: shape.left
1120 | };
1121 | },
1122 | // eslint-disable-next-line func-names
1123 | getMousePosition: throttle(function (event) {
1124 | this.shape = this.$el.getBoundingClientRect();
1125 | this.mousePosition.x = event.clientX;
1126 | this.mousePosition.y = event.clientY;
1127 | }, 100),
1128 | parallaxStart: function parallaxStart() {
1129 | var _this3 = this;
1130 |
1131 | this.attemptedHover = true;
1132 |
1133 | if (this.isHoverable) {
1134 | this.isHovering = true;
1135 | this.didEnter = false;
1136 | setTimeout(function () {
1137 | _this3.didEnter = true;
1138 | }, 1000);
1139 | }
1140 | },
1141 | parallaxStop: function parallaxStop() {
1142 | this.isHovering = false;
1143 | this.didEnter = false;
1144 | }
1145 | }
1146 | });
1147 | // CONCATENATED MODULE: ./src/components/parallax-container.vue?vue&type=script&lang=js&
1148 | /* harmony default export */ var components_parallax_containervue_type_script_lang_js_ = (parallax_containervue_type_script_lang_js_);
1149 | // CONCATENATED MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
1150 | /* globals __VUE_SSR_CONTEXT__ */
1151 |
1152 | // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
1153 | // This module is a runtime utility for cleaner component module output and will
1154 | // be included in the final webpack user bundle.
1155 |
1156 | function normalizeComponent (
1157 | scriptExports,
1158 | render,
1159 | staticRenderFns,
1160 | functionalTemplate,
1161 | injectStyles,
1162 | scopeId,
1163 | moduleIdentifier, /* server only */
1164 | shadowMode /* vue-cli only */
1165 | ) {
1166 | // Vue.extend constructor export interop
1167 | var options = typeof scriptExports === 'function'
1168 | ? scriptExports.options
1169 | : scriptExports
1170 |
1171 | // render functions
1172 | if (render) {
1173 | options.render = render
1174 | options.staticRenderFns = staticRenderFns
1175 | options._compiled = true
1176 | }
1177 |
1178 | // functional template
1179 | if (functionalTemplate) {
1180 | options.functional = true
1181 | }
1182 |
1183 | // scopedId
1184 | if (scopeId) {
1185 | options._scopeId = 'data-v-' + scopeId
1186 | }
1187 |
1188 | var hook
1189 | if (moduleIdentifier) { // server build
1190 | hook = function (context) {
1191 | // 2.3 injection
1192 | context =
1193 | context || // cached call
1194 | (this.$vnode && this.$vnode.ssrContext) || // stateful
1195 | (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
1196 | // 2.2 with runInNewContext: true
1197 | if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
1198 | context = __VUE_SSR_CONTEXT__
1199 | }
1200 | // inject component styles
1201 | if (injectStyles) {
1202 | injectStyles.call(this, context)
1203 | }
1204 | // register component module identifier for async chunk inferrence
1205 | if (context && context._registeredComponents) {
1206 | context._registeredComponents.add(moduleIdentifier)
1207 | }
1208 | }
1209 | // used by ssr in case component is cached and beforeCreate
1210 | // never gets called
1211 | options._ssrRegister = hook
1212 | } else if (injectStyles) {
1213 | hook = shadowMode
1214 | ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
1215 | : injectStyles
1216 | }
1217 |
1218 | if (hook) {
1219 | if (options.functional) {
1220 | // for template-only hot-reload because in that case the render fn doesn't
1221 | // go through the normalizer
1222 | options._injectStyles = hook
1223 | // register for functioal component in vue file
1224 | var originalRender = options.render
1225 | options.render = function renderWithStyleInjection (h, context) {
1226 | hook.call(context)
1227 | return originalRender(h, context)
1228 | }
1229 | } else {
1230 | // inject component registration as beforeCreate hook
1231 | var existing = options.beforeCreate
1232 | options.beforeCreate = existing
1233 | ? [].concat(existing, hook)
1234 | : [hook]
1235 | }
1236 | }
1237 |
1238 | return {
1239 | exports: scriptExports,
1240 | options: options
1241 | }
1242 | }
1243 |
1244 | // CONCATENATED MODULE: ./src/components/parallax-container.vue
1245 |
1246 |
1247 |
1248 |
1249 |
1250 | /* normalize component */
1251 |
1252 | var component = normalizeComponent(
1253 | components_parallax_containervue_type_script_lang_js_,
1254 | render,
1255 | staticRenderFns,
1256 | false,
1257 | null,
1258 | null,
1259 | null
1260 |
1261 | )
1262 |
1263 | /* harmony default export */ var parallax_container = (component.exports);
1264 | // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"4f429782-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/parallax-element.vue?vue&type=template&id=2f75f72a&
1265 | var parallax_elementvue_type_template_id_2f75f72a_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c(_vm.tag,{tag:"component",style:(Object.assign({}, _vm.transform, _vm.transformParameters))},[_vm._t("default")],2)}
1266 | var parallax_elementvue_type_template_id_2f75f72a_staticRenderFns = []
1267 |
1268 |
1269 | // CONCATENATED MODULE: ./src/components/parallax-element.vue?vue&type=template&id=2f75f72a&
1270 |
1271 | // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/parallax-element.vue?vue&type=script&lang=js&
1272 |
1273 | //
1274 | //
1275 | //
1276 | //
1277 | //
1278 | //
1279 | /* harmony default export */ var parallax_elementvue_type_script_lang_js_ = ({
1280 | name: 'ParallaxElement',
1281 | props: {
1282 | parallaxStrength: {
1283 | type: Number,
1284 | default: 10
1285 | },
1286 | type: {
1287 | type: String,
1288 | default: 'translation'
1289 | },
1290 | tag: {
1291 | type: String,
1292 | default: 'div'
1293 | },
1294 | limitX: {
1295 | type: Boolean,
1296 | default: false
1297 | },
1298 | limitY: {
1299 | type: Boolean,
1300 | default: false
1301 | }
1302 | },
1303 | inject: ['context'],
1304 | computed: {
1305 | transform: function transform() {
1306 | var _this$context = this.context,
1307 | isHovering = _this$context.isHovering,
1308 | mousePosition = _this$context.mousePosition,
1309 | shape = _this$context.shape;
1310 | if (!isHovering) return;
1311 | var parallaxStrength = this.type === 'depth' ? Math.abs(this.parallaxStrength) : this.parallaxStrength;
1312 | var relativeX = mousePosition.x - shape.left;
1313 | var relativeY = mousePosition.y - shape.top;
1314 | var movementX = (relativeX - shape.width / 2) / (shape.width / 2) * parallaxStrength;
1315 | var movementY = (relativeY - shape.height / 2) / (shape.height / 2) * parallaxStrength;
1316 | var transform;
1317 |
1318 | if (this.type === 'translation') {
1319 | transform = "translate3d(".concat(this.limitY ? 0 : -movementX, "px, ").concat(this.limitX ? 0 : -movementY, "px, 0)");
1320 | } else if (this.type === 'rotation') {
1321 | var movement;
1322 |
1323 | if (this.limitX) {
1324 | movement = movementX * 2;
1325 | } else if (this.limitY) {
1326 | movement = movementY * 2;
1327 | } else {
1328 | movement = movementX + movementY;
1329 | }
1330 |
1331 | transform = "rotate3d(0,0,1,".concat(movement, "deg)");
1332 | } else if (this.type === 'depth') {
1333 | transform = "rotateX(".concat(this.limitX ? 0 : -movementY, "deg) rotateY(").concat(this.limitY ? 0 : movementX, "deg) translate3d(0,0,").concat(this.parallaxStrength * 2, "px)");
1334 | } // eslint-disable-next-line consistent-return
1335 |
1336 |
1337 | return {
1338 | transform: transform
1339 | };
1340 | },
1341 | transformParameters: function transformParameters() {
1342 | return {
1343 | transitionProperty: 'transform',
1344 | transitionDuration: this.transitionDuration,
1345 | transformOrigin: 'center',
1346 | transitionTimingFunction: this.transitionTimingFunction
1347 | };
1348 | },
1349 | transitionDuration: function transitionDuration() {
1350 | var _this$context2 = this.context,
1351 | animationDuration = _this$context2.animationDuration,
1352 | didEnter = _this$context2.didEnter;
1353 | var durationException = animationDuration > 400 ? animationDuration : 400;
1354 | var duration = didEnter ? animationDuration : durationException;
1355 | return "".concat(duration, "ms");
1356 | },
1357 | transitionTimingFunction: function transitionTimingFunction() {
1358 | return this.context.easing;
1359 | }
1360 | }
1361 | });
1362 | // CONCATENATED MODULE: ./src/components/parallax-element.vue?vue&type=script&lang=js&
1363 | /* harmony default export */ var components_parallax_elementvue_type_script_lang_js_ = (parallax_elementvue_type_script_lang_js_);
1364 | // CONCATENATED MODULE: ./src/components/parallax-element.vue
1365 |
1366 |
1367 |
1368 |
1369 |
1370 | /* normalize component */
1371 |
1372 | var parallax_element_component = normalizeComponent(
1373 | components_parallax_elementvue_type_script_lang_js_,
1374 | parallax_elementvue_type_template_id_2f75f72a_render,
1375 | parallax_elementvue_type_template_id_2f75f72a_staticRenderFns,
1376 | false,
1377 | null,
1378 | null,
1379 | null
1380 |
1381 | )
1382 |
1383 | /* harmony default export */ var parallax_element = (parallax_element_component.exports);
1384 | // CONCATENATED MODULE: ./src/components/index.js
1385 |
1386 |
1387 | // CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib-no-default.js
1388 | /* concated harmony reexport ParallaxContainer */__webpack_require__.d(__webpack_exports__, "ParallaxContainer", function() { return parallax_container; });
1389 | /* concated harmony reexport ParallaxElement */__webpack_require__.d(__webpack_exports__, "ParallaxElement", function() { return parallax_element; });
1390 |
1391 |
1392 |
1393 |
1394 | /***/ }),
1395 |
1396 | /***/ "fdef":
1397 | /***/ (function(module, exports) {
1398 |
1399 | module.exports = '\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003' +
1400 | '\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
1401 |
1402 |
1403 | /***/ })
1404 |
1405 | /******/ });
1406 | //# sourceMappingURL=vue-mouse-parallax.common.js.map
--------------------------------------------------------------------------------
/dist/vue-mouse-parallax.common.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["webpack://vue-mouse-parallax/webpack/bootstrap","webpack://vue-mouse-parallax/./node_modules/core-js/modules/_object-keys.js","webpack://vue-mouse-parallax/./node_modules/core-js/modules/_object-gopd.js","webpack://vue-mouse-parallax/./node_modules/core-js/modules/_object-dps.js","webpack://vue-mouse-parallax/./node_modules/core-js/modules/_dom-create.js","webpack://vue-mouse-parallax/./node_modules/core-js/modules/_redefine.js","webpack://vue-mouse-parallax/./node_modules/core-js/modules/_object-create.js","webpack://vue-mouse-parallax/./node_modules/core-js/modules/_library.js","webpack://vue-mouse-parallax/./node_modules/core-js/modules/_cof.js","webpack://vue-mouse-parallax/./node_modules/core-js/modules/_hide.js","webpack://vue-mouse-parallax/./node_modules/core-js/modules/_to-integer.js","webpack://vue-mouse-parallax/./node_modules/core-js/modules/_property-desc.js","webpack://vue-mouse-parallax/./node_modules/core-js/modules/_object-pie.js","webpack://vue-mouse-parallax/./node_modules/core-js/modules/_shared.js","webpack://vue-mouse-parallax/./node_modules/core-js/modules/_export.js","webpack://vue-mouse-parallax/./node_modules/core-js/modules/_inherit-if-required.js","webpack://vue-mouse-parallax/./node_modules/core-js/modules/_shared-key.js","webpack://vue-mouse-parallax/./node_modules/core-js/modules/_iobject.js","webpack://vue-mouse-parallax/./node_modules/core-js/modules/_to-iobject.js","webpack://vue-mouse-parallax/./node_modules/core-js/modules/_has.js","webpack://vue-mouse-parallax/./node_modules/core-js/modules/_to-primitive.js","webpack://vue-mouse-parallax/./node_modules/core-js/modules/_global.js","webpack://vue-mouse-parallax/./node_modules/core-js/modules/_to-absolute-index.js","webpack://vue-mouse-parallax/./node_modules/core-js/modules/_fails.js","webpack://vue-mouse-parallax/./node_modules/core-js/modules/_core.js","webpack://vue-mouse-parallax/./node_modules/core-js/modules/_object-dp.js","webpack://vue-mouse-parallax/./node_modules/core-js/modules/_set-proto.js","webpack://vue-mouse-parallax/./node_modules/core-js/modules/_object-gopn.js","webpack://vue-mouse-parallax/./node_modules/core-js/modules/_ctx.js","webpack://vue-mouse-parallax/./node_modules/core-js/modules/_to-length.js","webpack://vue-mouse-parallax/./node_modules/core-js/modules/_descriptors.js","webpack://vue-mouse-parallax/./node_modules/core-js/modules/_string-trim.js","webpack://vue-mouse-parallax/./node_modules/core-js/modules/_defined.js","webpack://vue-mouse-parallax/./node_modules/core-js/modules/_array-includes.js","webpack://vue-mouse-parallax/./node_modules/core-js/modules/es6.number.constructor.js","webpack://vue-mouse-parallax/./node_modules/core-js/modules/_ie8-dom-define.js","webpack://vue-mouse-parallax/./node_modules/core-js/modules/_uid.js","webpack://vue-mouse-parallax/./node_modules/core-js/modules/_an-object.js","webpack://vue-mouse-parallax/./node_modules/core-js/modules/_object-keys-internal.js","webpack://vue-mouse-parallax/./node_modules/core-js/modules/_is-object.js","webpack://vue-mouse-parallax/./node_modules/core-js/modules/_a-function.js","webpack://vue-mouse-parallax/./node_modules/core-js/modules/_enum-bug-keys.js","webpack://vue-mouse-parallax/./node_modules/current-script-polyfill/currentScript.js","webpack://vue-mouse-parallax/./node_modules/core-js/modules/_function-to-string.js","webpack://vue-mouse-parallax/./node_modules/core-js/modules/_html.js","webpack://vue-mouse-parallax/./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js","webpack://vue-mouse-parallax/./src/components/parallax-container.vue?a779","webpack://vue-mouse-parallax/./src/lib/throttle.js","webpack://vue-mouse-parallax/src/components/parallax-container.vue","webpack://vue-mouse-parallax/./src/components/parallax-container.vue?55b5","webpack://vue-mouse-parallax/./node_modules/vue-loader/lib/runtime/componentNormalizer.js","webpack://vue-mouse-parallax/./src/components/parallax-container.vue","webpack://vue-mouse-parallax/./src/components/parallax-element.vue?d943","webpack://vue-mouse-parallax/src/components/parallax-element.vue","webpack://vue-mouse-parallax/./src/components/parallax-element.vue?f43b","webpack://vue-mouse-parallax/./src/components/parallax-element.vue","webpack://vue-mouse-parallax/./src/components/index.js","webpack://vue-mouse-parallax/./node_modules/@vue/cli-service/lib/commands/build/entry-lib-no-default.js","webpack://vue-mouse-parallax/./node_modules/core-js/modules/_string-ws.js"],"names":["throttle","callback","delay","last","timer","context","newDelay","animationDuration","now","Date","args","arguments","clearTimeout","setTimeout","apply"],"mappings":";;QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;AClFA;AACA,YAAY,mBAAO,CAAC,MAAyB;AAC7C,kBAAkB,mBAAO,CAAC,MAAkB;;AAE5C;AACA;AACA;;;;;;;;ACNA,UAAU,mBAAO,CAAC,MAAe;AACjC,iBAAiB,mBAAO,CAAC,MAAkB;AAC3C,gBAAgB,mBAAO,CAAC,MAAe;AACvC,kBAAkB,mBAAO,CAAC,MAAiB;AAC3C,UAAU,mBAAO,CAAC,MAAQ;AAC1B,qBAAqB,mBAAO,CAAC,MAAmB;AAChD;;AAEA,YAAY,mBAAO,CAAC,MAAgB;AACpC;AACA;AACA;AACA;AACA,GAAG,YAAY;AACf;AACA;;;;;;;;ACfA,SAAS,mBAAO,CAAC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,qBAyEA;AAAA;;AACA;AACA;AACA;;AACA;AACA;AACA;AACA,KALA,EAKA,GALA;AAMA,GAjFA;AAkFA;AACA,uBADA,iCACA;AACA;AACA;AACA,sBADA;AAEA;AAFA;AAIA,KAPA;AAQA;AACA;AACA;AACA;AACA;AACA,KAJA,EAIA,GAJA,CATA;AAeA,iBAfA,2BAeA;AAAA;;AACA;;AACA;AACA;AACA;AACA;AACA;AACA,SAFA,EAEA,IAFA;AAGA;AACA,KAxBA;AA0BA,gBA1BA,0BA0BA;AACA;AACA;AACA;AA7BA;AAlFA,G;;ACf4U,CAAgB,oIAAG,EAAC,C;;ACAhW;;AAEA;AACA;AACA;;AAEe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,yBAAyB;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,qBAAqB;AACrB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;;AC5FiG;AAC3B;AACL;;;AAGjE;AAC0F;AAC1F,gBAAgB,kBAAU;AAC1B,EAAE,qDAAM;AACR,EAAE,MAAM;AACR,EAAE,eAAe;AACjB;AACA;AACA;AACA;;AAEA;;AAEe,wE;;AClBf,IAAI,oDAAM,gBAAgB,aAAa,0BAA0B,wBAAwB,mBAAmB,uCAAuC,2CAA2C;AAC9L,IAAI,6DAAe;;;;;;;;;;;;;ACMnB;AACA,yBADA;AAEA;AACA;AACA,kBADA;AAEA;AAFA,KADA;AAKA;AACA,kBADA;AAEA;AAFA,KALA;AASA;AACA,kBADA;AAEA;AAFA,KATA;AAaA;AACA,mBADA;AAEA;AAFA,KAbA;AAiBA;AACA,mBADA;AAEA;AAFA;AAjBA,GAFA;AAwBA,qBAxBA;AAyBA;AACA,aADA,uBACA;AAAA,0BACA,YADA;AAAA,UACA,UADA,iBACA,UADA;AAAA,UACA,aADA,iBACA,aADA;AAAA,UACA,KADA,iBACA,KADA;AAGA;AAEA;AACA;AACA;AACA;AACA;AAEA;;AACA;AACA;AACA,OAFA,MAEA;AACA;;AACA;AACA;AACA,SAFA,MAEA;AACA;AACA,SAFA,MAEA;AACA;AACA;;AACA;AACA,OAVA,MAUA;AACA;AACA,OA1BA,CA2BA;;;AACA;AAAA;AAAA;AACA,KA9BA;AA+BA,uBA/BA,iCA+BA;AACA;AACA,uCADA;AAEA,mDAFA;AAGA,iCAHA;AAIA;AAJA;AAMA,KAtCA;AAuCA,sBAvCA,gCAuCA;AAAA,2BACA,YADA;AAAA,UACA,iBADA,kBACA,iBADA;AAAA,UACA,QADA,kBACA,QADA;AAEA;AACA;AACA;AACA,KA5CA;AA6CA,4BA7CA,sCA6CA;AACA;AACA;AA/CA;AAzBA,G;;ACP0U,CAAgB,gIAAG,EAAC,C;;ACA/P;AAC3B;AACL;;;AAG/D;AAC0F;AAC1F,IAAI,0BAAS,GAAG,kBAAU;AAC1B,EAAE,mDAAM;AACR,EAAE,oDAAM;AACR,EAAE,6DAAe;AACjB;AACA;AACA;AACA;;AAEA;;AAEe,+EAAS,Q;;AClBxB;;;ACAA;AAAA;AAAwB;AACF;;;;;;;;ACDtB;AACA","file":"vue-mouse-parallax.common.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"fae3\");\n","// 19.1.2.14 / 15.2.3.14 Object.keys(O)\nvar $keys = require('./_object-keys-internal');\nvar enumBugKeys = require('./_enum-bug-keys');\n\nmodule.exports = Object.keys || function keys(O) {\n return $keys(O, enumBugKeys);\n};\n","var pIE = require('./_object-pie');\nvar createDesc = require('./_property-desc');\nvar toIObject = require('./_to-iobject');\nvar toPrimitive = require('./_to-primitive');\nvar has = require('./_has');\nvar IE8_DOM_DEFINE = require('./_ie8-dom-define');\nvar gOPD = Object.getOwnPropertyDescriptor;\n\nexports.f = require('./_descriptors') ? gOPD : function getOwnPropertyDescriptor(O, P) {\n O = toIObject(O);\n P = toPrimitive(P, true);\n if (IE8_DOM_DEFINE) try {\n return gOPD(O, P);\n } catch (e) { /* empty */ }\n if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]);\n};\n","var dP = require('./_object-dp');\nvar anObject = require('./_an-object');\nvar getKeys = require('./_object-keys');\n\nmodule.exports = require('./_descriptors') ? Object.defineProperties : function defineProperties(O, Properties) {\n anObject(O);\n var keys = getKeys(Properties);\n var length = keys.length;\n var i = 0;\n var P;\n while (length > i) dP.f(O, P = keys[i++], Properties[P]);\n return O;\n};\n","var isObject = require('./_is-object');\nvar document = require('./_global').document;\n// typeof document.createElement is 'object' in old IE\nvar is = isObject(document) && isObject(document.createElement);\nmodule.exports = function (it) {\n return is ? document.createElement(it) : {};\n};\n","var global = require('./_global');\nvar hide = require('./_hide');\nvar has = require('./_has');\nvar SRC = require('./_uid')('src');\nvar $toString = require('./_function-to-string');\nvar TO_STRING = 'toString';\nvar TPL = ('' + $toString).split(TO_STRING);\n\nrequire('./_core').inspectSource = function (it) {\n return $toString.call(it);\n};\n\n(module.exports = function (O, key, val, safe) {\n var isFunction = typeof val == 'function';\n if (isFunction) has(val, 'name') || hide(val, 'name', key);\n if (O[key] === val) return;\n if (isFunction) has(val, SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key)));\n if (O === global) {\n O[key] = val;\n } else if (!safe) {\n delete O[key];\n hide(O, key, val);\n } else if (O[key]) {\n O[key] = val;\n } else {\n hide(O, key, val);\n }\n// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative\n})(Function.prototype, TO_STRING, function toString() {\n return typeof this == 'function' && this[SRC] || $toString.call(this);\n});\n","// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])\nvar anObject = require('./_an-object');\nvar dPs = require('./_object-dps');\nvar enumBugKeys = require('./_enum-bug-keys');\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\nvar Empty = function () { /* empty */ };\nvar PROTOTYPE = 'prototype';\n\n// Create object with fake `null` prototype: use iframe Object with cleared prototype\nvar createDict = function () {\n // Thrash, waste and sodomy: IE GC bug\n var iframe = require('./_dom-create')('iframe');\n var i = enumBugKeys.length;\n var lt = '<';\n var gt = '>';\n var iframeDocument;\n iframe.style.display = 'none';\n require('./_html').appendChild(iframe);\n iframe.src = 'javascript:'; // eslint-disable-line no-script-url\n // createDict = iframe.contentWindow.Object;\n // html.removeChild(iframe);\n iframeDocument = iframe.contentWindow.document;\n iframeDocument.open();\n iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);\n iframeDocument.close();\n createDict = iframeDocument.F;\n while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];\n return createDict();\n};\n\nmodule.exports = Object.create || function create(O, Properties) {\n var result;\n if (O !== null) {\n Empty[PROTOTYPE] = anObject(O);\n result = new Empty();\n Empty[PROTOTYPE] = null;\n // add \"__proto__\" for Object.getPrototypeOf polyfill\n result[IE_PROTO] = O;\n } else result = createDict();\n return Properties === undefined ? result : dPs(result, Properties);\n};\n","module.exports = false;\n","var toString = {}.toString;\n\nmodule.exports = function (it) {\n return toString.call(it).slice(8, -1);\n};\n","var dP = require('./_object-dp');\nvar createDesc = require('./_property-desc');\nmodule.exports = require('./_descriptors') ? function (object, key, value) {\n return dP.f(object, key, createDesc(1, value));\n} : function (object, key, value) {\n object[key] = value;\n return object;\n};\n","// 7.1.4 ToInteger\nvar ceil = Math.ceil;\nvar floor = Math.floor;\nmodule.exports = function (it) {\n return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);\n};\n","module.exports = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\n","exports.f = {}.propertyIsEnumerable;\n","var core = require('./_core');\nvar global = require('./_global');\nvar SHARED = '__core-js_shared__';\nvar store = global[SHARED] || (global[SHARED] = {});\n\n(module.exports = function (key, value) {\n return store[key] || (store[key] = value !== undefined ? value : {});\n})('versions', []).push({\n version: core.version,\n mode: require('./_library') ? 'pure' : 'global',\n copyright: '© 2019 Denis Pushkarev (zloirock.ru)'\n});\n","var global = require('./_global');\nvar core = require('./_core');\nvar hide = require('./_hide');\nvar redefine = require('./_redefine');\nvar ctx = require('./_ctx');\nvar PROTOTYPE = 'prototype';\n\nvar $export = function (type, name, source) {\n var IS_FORCED = type & $export.F;\n var IS_GLOBAL = type & $export.G;\n var IS_STATIC = type & $export.S;\n var IS_PROTO = type & $export.P;\n var IS_BIND = type & $export.B;\n var target = IS_GLOBAL ? global : IS_STATIC ? global[name] || (global[name] = {}) : (global[name] || {})[PROTOTYPE];\n var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});\n var expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {});\n var key, own, out, exp;\n if (IS_GLOBAL) source = name;\n for (key in source) {\n // contains in native\n own = !IS_FORCED && target && target[key] !== undefined;\n // export native or passed\n out = (own ? target : source)[key];\n // bind timers to global for call from export context\n exp = IS_BIND && own ? ctx(out, global) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;\n // extend global\n if (target) redefine(target, key, out, type & $export.U);\n // export\n if (exports[key] != out) hide(exports, key, exp);\n if (IS_PROTO && expProto[key] != out) expProto[key] = out;\n }\n};\nglobal.core = core;\n// type bitmap\n$export.F = 1; // forced\n$export.G = 2; // global\n$export.S = 4; // static\n$export.P = 8; // proto\n$export.B = 16; // bind\n$export.W = 32; // wrap\n$export.U = 64; // safe\n$export.R = 128; // real proto method for `library`\nmodule.exports = $export;\n","var isObject = require('./_is-object');\nvar setPrototypeOf = require('./_set-proto').set;\nmodule.exports = function (that, target, C) {\n var S = target.constructor;\n var P;\n if (S !== C && typeof S == 'function' && (P = S.prototype) !== C.prototype && isObject(P) && setPrototypeOf) {\n setPrototypeOf(that, P);\n } return that;\n};\n","var shared = require('./_shared')('keys');\nvar uid = require('./_uid');\nmodule.exports = function (key) {\n return shared[key] || (shared[key] = uid(key));\n};\n","// fallback for non-array-like ES3 and non-enumerable old V8 strings\nvar cof = require('./_cof');\n// eslint-disable-next-line no-prototype-builtins\nmodule.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {\n return cof(it) == 'String' ? it.split('') : Object(it);\n};\n","// to indexed object, toObject with fallback for non-array-like ES3 strings\nvar IObject = require('./_iobject');\nvar defined = require('./_defined');\nmodule.exports = function (it) {\n return IObject(defined(it));\n};\n","var hasOwnProperty = {}.hasOwnProperty;\nmodule.exports = function (it, key) {\n return hasOwnProperty.call(it, key);\n};\n","// 7.1.1 ToPrimitive(input [, PreferredType])\nvar isObject = require('./_is-object');\n// instead of the ES6 spec version, we didn't implement @@toPrimitive case\n// and the second argument - flag - preferred type is a string\nmodule.exports = function (it, S) {\n if (!isObject(it)) return it;\n var fn, val;\n if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;\n if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;\n if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;\n throw TypeError(\"Can't convert object to primitive value\");\n};\n","// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nvar global = module.exports = typeof window != 'undefined' && window.Math == Math\n ? window : typeof self != 'undefined' && self.Math == Math ? self\n // eslint-disable-next-line no-new-func\n : Function('return this')();\nif (typeof __g == 'number') __g = global; // eslint-disable-line no-undef\n","var toInteger = require('./_to-integer');\nvar max = Math.max;\nvar min = Math.min;\nmodule.exports = function (index, length) {\n index = toInteger(index);\n return index < 0 ? max(index + length, 0) : min(index, length);\n};\n","module.exports = function (exec) {\n try {\n return !!exec();\n } catch (e) {\n return true;\n }\n};\n","var core = module.exports = { version: '2.6.9' };\nif (typeof __e == 'number') __e = core; // eslint-disable-line no-undef\n","var anObject = require('./_an-object');\nvar IE8_DOM_DEFINE = require('./_ie8-dom-define');\nvar toPrimitive = require('./_to-primitive');\nvar dP = Object.defineProperty;\n\nexports.f = require('./_descriptors') ? Object.defineProperty : function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPrimitive(P, true);\n anObject(Attributes);\n if (IE8_DOM_DEFINE) try {\n return dP(O, P, Attributes);\n } catch (e) { /* empty */ }\n if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\n","// Works with __proto__ only. Old v8 can't work with null proto objects.\n/* eslint-disable no-proto */\nvar isObject = require('./_is-object');\nvar anObject = require('./_an-object');\nvar check = function (O, proto) {\n anObject(O);\n if (!isObject(proto) && proto !== null) throw TypeError(proto + \": can't set as prototype!\");\n};\nmodule.exports = {\n set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line\n function (test, buggy, set) {\n try {\n set = require('./_ctx')(Function.call, require('./_object-gopd').f(Object.prototype, '__proto__').set, 2);\n set(test, []);\n buggy = !(test instanceof Array);\n } catch (e) { buggy = true; }\n return function setPrototypeOf(O, proto) {\n check(O, proto);\n if (buggy) O.__proto__ = proto;\n else set(O, proto);\n return O;\n };\n }({}, false) : undefined),\n check: check\n};\n","// 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)\nvar $keys = require('./_object-keys-internal');\nvar hiddenKeys = require('./_enum-bug-keys').concat('length', 'prototype');\n\nexports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {\n return $keys(O, hiddenKeys);\n};\n","// optional / simple context binding\nvar aFunction = require('./_a-function');\nmodule.exports = function (fn, that, length) {\n aFunction(fn);\n if (that === undefined) return fn;\n switch (length) {\n case 1: return function (a) {\n return fn.call(that, a);\n };\n case 2: return function (a, b) {\n return fn.call(that, a, b);\n };\n case 3: return function (a, b, c) {\n return fn.call(that, a, b, c);\n };\n }\n return function (/* ...args */) {\n return fn.apply(that, arguments);\n };\n};\n","// 7.1.15 ToLength\nvar toInteger = require('./_to-integer');\nvar min = Math.min;\nmodule.exports = function (it) {\n return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991\n};\n","// Thank's IE8 for his funny defineProperty\nmodule.exports = !require('./_fails')(function () {\n return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;\n});\n","var $export = require('./_export');\nvar defined = require('./_defined');\nvar fails = require('./_fails');\nvar spaces = require('./_string-ws');\nvar space = '[' + spaces + ']';\nvar non = '\\u200b\\u0085';\nvar ltrim = RegExp('^' + space + space + '*');\nvar rtrim = RegExp(space + space + '*$');\n\nvar exporter = function (KEY, exec, ALIAS) {\n var exp = {};\n var FORCE = fails(function () {\n return !!spaces[KEY]() || non[KEY]() != non;\n });\n var fn = exp[KEY] = FORCE ? exec(trim) : spaces[KEY];\n if (ALIAS) exp[ALIAS] = fn;\n $export($export.P + $export.F * FORCE, 'String', exp);\n};\n\n// 1 -> String#trimLeft\n// 2 -> String#trimRight\n// 3 -> String#trim\nvar trim = exporter.trim = function (string, TYPE) {\n string = String(defined(string));\n if (TYPE & 1) string = string.replace(ltrim, '');\n if (TYPE & 2) string = string.replace(rtrim, '');\n return string;\n};\n\nmodule.exports = exporter;\n","// 7.2.1 RequireObjectCoercible(argument)\nmodule.exports = function (it) {\n if (it == undefined) throw TypeError(\"Can't call method on \" + it);\n return it;\n};\n","// false -> Array#indexOf\n// true -> Array#includes\nvar toIObject = require('./_to-iobject');\nvar toLength = require('./_to-length');\nvar toAbsoluteIndex = require('./_to-absolute-index');\nmodule.exports = function (IS_INCLUDES) {\n return function ($this, el, fromIndex) {\n var O = toIObject($this);\n var length = toLength(O.length);\n var index = toAbsoluteIndex(fromIndex, length);\n var value;\n // Array#includes uses SameValueZero equality algorithm\n // eslint-disable-next-line no-self-compare\n if (IS_INCLUDES && el != el) while (length > index) {\n value = O[index++];\n // eslint-disable-next-line no-self-compare\n if (value != value) return true;\n // Array#indexOf ignores holes, Array#includes - not\n } else for (;length > index; index++) if (IS_INCLUDES || index in O) {\n if (O[index] === el) return IS_INCLUDES || index || 0;\n } return !IS_INCLUDES && -1;\n };\n};\n","'use strict';\nvar global = require('./_global');\nvar has = require('./_has');\nvar cof = require('./_cof');\nvar inheritIfRequired = require('./_inherit-if-required');\nvar toPrimitive = require('./_to-primitive');\nvar fails = require('./_fails');\nvar gOPN = require('./_object-gopn').f;\nvar gOPD = require('./_object-gopd').f;\nvar dP = require('./_object-dp').f;\nvar $trim = require('./_string-trim').trim;\nvar NUMBER = 'Number';\nvar $Number = global[NUMBER];\nvar Base = $Number;\nvar proto = $Number.prototype;\n// Opera ~12 has broken Object#toString\nvar BROKEN_COF = cof(require('./_object-create')(proto)) == NUMBER;\nvar TRIM = 'trim' in String.prototype;\n\n// 7.1.3 ToNumber(argument)\nvar toNumber = function (argument) {\n var it = toPrimitive(argument, false);\n if (typeof it == 'string' && it.length > 2) {\n it = TRIM ? it.trim() : $trim(it, 3);\n var first = it.charCodeAt(0);\n var third, radix, maxCode;\n if (first === 43 || first === 45) {\n third = it.charCodeAt(2);\n if (third === 88 || third === 120) return NaN; // Number('+0x1') should be NaN, old V8 fix\n } else if (first === 48) {\n switch (it.charCodeAt(1)) {\n case 66: case 98: radix = 2; maxCode = 49; break; // fast equal /^0b[01]+$/i\n case 79: case 111: radix = 8; maxCode = 55; break; // fast equal /^0o[0-7]+$/i\n default: return +it;\n }\n for (var digits = it.slice(2), i = 0, l = digits.length, code; i < l; i++) {\n code = digits.charCodeAt(i);\n // parseInt parses a string to a first unavailable symbol\n // but ToNumber should return NaN if a string contains unavailable symbols\n if (code < 48 || code > maxCode) return NaN;\n } return parseInt(digits, radix);\n }\n } return +it;\n};\n\nif (!$Number(' 0o1') || !$Number('0b1') || $Number('+0x1')) {\n $Number = function Number(value) {\n var it = arguments.length < 1 ? 0 : value;\n var that = this;\n return that instanceof $Number\n // check on 1..constructor(foo) case\n && (BROKEN_COF ? fails(function () { proto.valueOf.call(that); }) : cof(that) != NUMBER)\n ? inheritIfRequired(new Base(toNumber(it)), that, $Number) : toNumber(it);\n };\n for (var keys = require('./_descriptors') ? gOPN(Base) : (\n // ES3:\n 'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' +\n // ES6 (in case, if modules with ES6 Number statics required before):\n 'EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,' +\n 'MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger'\n ).split(','), j = 0, key; keys.length > j; j++) {\n if (has(Base, key = keys[j]) && !has($Number, key)) {\n dP($Number, key, gOPD(Base, key));\n }\n }\n $Number.prototype = proto;\n proto.constructor = $Number;\n require('./_redefine')(global, NUMBER, $Number);\n}\n","module.exports = !require('./_descriptors') && !require('./_fails')(function () {\n return Object.defineProperty(require('./_dom-create')('div'), 'a', { get: function () { return 7; } }).a != 7;\n});\n","var id = 0;\nvar px = Math.random();\nmodule.exports = function (key) {\n return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));\n};\n","var isObject = require('./_is-object');\nmodule.exports = function (it) {\n if (!isObject(it)) throw TypeError(it + ' is not an object!');\n return it;\n};\n","var has = require('./_has');\nvar toIObject = require('./_to-iobject');\nvar arrayIndexOf = require('./_array-includes')(false);\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\n\nmodule.exports = function (object, names) {\n var O = toIObject(object);\n var i = 0;\n var result = [];\n var key;\n for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key);\n // Don't enum bug & hidden keys\n while (names.length > i) if (has(O, key = names[i++])) {\n ~arrayIndexOf(result, key) || result.push(key);\n }\n return result;\n};\n","module.exports = function (it) {\n return typeof it === 'object' ? it !== null : typeof it === 'function';\n};\n","module.exports = function (it) {\n if (typeof it != 'function') throw TypeError(it + ' is not a function!');\n return it;\n};\n","// IE 8- don't enum bug keys\nmodule.exports = (\n 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'\n).split(',');\n","// document.currentScript polyfill by Adam Miller\n\n// MIT license\n\n(function(document){\n var currentScript = \"currentScript\",\n scripts = document.getElementsByTagName('script'); // Live NodeList collection\n\n // If browser needs currentScript polyfill, add get currentScript() to the document object\n if (!(currentScript in document)) {\n Object.defineProperty(document, currentScript, {\n get: function(){\n\n // IE 6-10 supports script readyState\n // IE 10+ support stack trace\n try { throw new Error(); }\n catch (err) {\n\n // Find the second match for the \"at\" string to get file src url from stack.\n // Specifically works with the format of stack traces in IE.\n var i, res = ((/.*at [^\\(]*\\((.*):.+:.+\\)$/ig).exec(err.stack) || [false])[1];\n\n // For all scripts on the page, if src matches or if ready state is interactive, return the script tag\n for(i in scripts){\n if(scripts[i].src == res || scripts[i].readyState == \"interactive\"){\n return scripts[i];\n }\n }\n\n // If no match, return null\n return null;\n }\n }\n });\n }\n})(document);\n","module.exports = require('./_shared')('native-function-to-string', Function.toString);\n","var document = require('./_global').document;\nmodule.exports = document && document.documentElement;\n","// This file is imported into lib/wc client bundles.\n\nif (typeof window !== 'undefined') {\n if (process.env.NEED_CURRENTSCRIPT_POLYFILL) {\n require('current-script-polyfill')\n }\n\n var i\n if ((i = window.document.currentScript) && (i = i.src.match(/(.+\\/)[^/]+\\.js(\\?.*)?$/))) {\n __webpack_public_path__ = i[1] // eslint-disable-line\n }\n}\n\n// Indicate to webpack that this file can be concatenated\nexport default null\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c(_vm.tag,{tag:\"component\",style:({perspective: (_vm.perspective + \"px\")}),on:{\"mousemove\":_vm.getMousePosition,\"mouseleave\":_vm.parallaxStop,\"mouseenter\":_vm.parallaxStart}},[_vm._t(\"default\")],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","export default function throttle(callback, delay) {\n let last;\n let timer;\n // eslint-disable-next-line func-names\n return function () {\n const context = this;\n const newDelay = this.animationDuration > 1000 ? delay : this.animationDuration / 10;\n const now = +new Date();\n // eslint-disable-next-line prefer-rest-params\n const args = arguments;\n if (last && now < last + newDelay) {\n clearTimeout(timer);\n timer = setTimeout(() => {\n last = now;\n callback.apply(context, args);\n }, newDelay);\n } else {\n last = now;\n callback.apply(context, args);\n }\n };\n}\n","\n \n \n \n\n\n\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./parallax-container.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./parallax-container.vue?vue&type=script&lang=js&\"","/* globals __VUE_SSR_CONTEXT__ */\n\n// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).\n// This module is a runtime utility for cleaner component module output and will\n// be included in the final webpack user bundle.\n\nexport default function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode /* vue-cli only */\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}\n","import { render, staticRenderFns } from \"./parallax-container.vue?vue&type=template&id=5ff65e2c&\"\nimport script from \"./parallax-container.vue?vue&type=script&lang=js&\"\nexport * from \"./parallax-container.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c(_vm.tag,{tag:\"component\",style:(Object.assign({}, _vm.transform, _vm.transformParameters))},[_vm._t(\"default\")],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n \n \n \n\n\n\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./parallax-element.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./parallax-element.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./parallax-element.vue?vue&type=template&id=2f75f72a&\"\nimport script from \"./parallax-element.vue?vue&type=script&lang=js&\"\nexport * from \"./parallax-element.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","export { default as ParallaxContainer } from './parallax-container.vue';\nexport { default as ParallaxElement } from './parallax-element.vue';\n","import './setPublicPath'\nexport * from '~entry'\n","module.exports = '\\x09\\x0A\\x0B\\x0C\\x0D\\x20\\xA0\\u1680\\u180E\\u2000\\u2001\\u2002\\u2003' +\n '\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000\\u2028\\u2029\\uFEFF';\n"],"sourceRoot":""}
--------------------------------------------------------------------------------
/dist/vue-mouse-parallax.umd.js:
--------------------------------------------------------------------------------
1 | (function webpackUniversalModuleDefinition(root, factory) {
2 | if(typeof exports === 'object' && typeof module === 'object')
3 | module.exports = factory();
4 | else if(typeof define === 'function' && define.amd)
5 | define([], factory);
6 | else if(typeof exports === 'object')
7 | exports["vue-mouse-parallax"] = factory();
8 | else
9 | root["vue-mouse-parallax"] = factory();
10 | })((typeof self !== 'undefined' ? self : this), function() {
11 | return /******/ (function(modules) { // webpackBootstrap
12 | /******/ // The module cache
13 | /******/ var installedModules = {};
14 | /******/
15 | /******/ // The require function
16 | /******/ function __webpack_require__(moduleId) {
17 | /******/
18 | /******/ // Check if module is in cache
19 | /******/ if(installedModules[moduleId]) {
20 | /******/ return installedModules[moduleId].exports;
21 | /******/ }
22 | /******/ // Create a new module (and put it into the cache)
23 | /******/ var module = installedModules[moduleId] = {
24 | /******/ i: moduleId,
25 | /******/ l: false,
26 | /******/ exports: {}
27 | /******/ };
28 | /******/
29 | /******/ // Execute the module function
30 | /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
31 | /******/
32 | /******/ // Flag the module as loaded
33 | /******/ module.l = true;
34 | /******/
35 | /******/ // Return the exports of the module
36 | /******/ return module.exports;
37 | /******/ }
38 | /******/
39 | /******/
40 | /******/ // expose the modules object (__webpack_modules__)
41 | /******/ __webpack_require__.m = modules;
42 | /******/
43 | /******/ // expose the module cache
44 | /******/ __webpack_require__.c = installedModules;
45 | /******/
46 | /******/ // define getter function for harmony exports
47 | /******/ __webpack_require__.d = function(exports, name, getter) {
48 | /******/ if(!__webpack_require__.o(exports, name)) {
49 | /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
50 | /******/ }
51 | /******/ };
52 | /******/
53 | /******/ // define __esModule on exports
54 | /******/ __webpack_require__.r = function(exports) {
55 | /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
56 | /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
57 | /******/ }
58 | /******/ Object.defineProperty(exports, '__esModule', { value: true });
59 | /******/ };
60 | /******/
61 | /******/ // create a fake namespace object
62 | /******/ // mode & 1: value is a module id, require it
63 | /******/ // mode & 2: merge all properties of value into the ns
64 | /******/ // mode & 4: return value when already ns object
65 | /******/ // mode & 8|1: behave like require
66 | /******/ __webpack_require__.t = function(value, mode) {
67 | /******/ if(mode & 1) value = __webpack_require__(value);
68 | /******/ if(mode & 8) return value;
69 | /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
70 | /******/ var ns = Object.create(null);
71 | /******/ __webpack_require__.r(ns);
72 | /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
73 | /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
74 | /******/ return ns;
75 | /******/ };
76 | /******/
77 | /******/ // getDefaultExport function for compatibility with non-harmony modules
78 | /******/ __webpack_require__.n = function(module) {
79 | /******/ var getter = module && module.__esModule ?
80 | /******/ function getDefault() { return module['default']; } :
81 | /******/ function getModuleExports() { return module; };
82 | /******/ __webpack_require__.d(getter, 'a', getter);
83 | /******/ return getter;
84 | /******/ };
85 | /******/
86 | /******/ // Object.prototype.hasOwnProperty.call
87 | /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
88 | /******/
89 | /******/ // __webpack_public_path__
90 | /******/ __webpack_require__.p = "";
91 | /******/
92 | /******/
93 | /******/ // Load entry module and return exports
94 | /******/ return __webpack_require__(__webpack_require__.s = "fae3");
95 | /******/ })
96 | /************************************************************************/
97 | /******/ ({
98 |
99 | /***/ "0d58":
100 | /***/ (function(module, exports, __webpack_require__) {
101 |
102 | // 19.1.2.14 / 15.2.3.14 Object.keys(O)
103 | var $keys = __webpack_require__("ce10");
104 | var enumBugKeys = __webpack_require__("e11e");
105 |
106 | module.exports = Object.keys || function keys(O) {
107 | return $keys(O, enumBugKeys);
108 | };
109 |
110 |
111 | /***/ }),
112 |
113 | /***/ "11e9":
114 | /***/ (function(module, exports, __webpack_require__) {
115 |
116 | var pIE = __webpack_require__("52a7");
117 | var createDesc = __webpack_require__("4630");
118 | var toIObject = __webpack_require__("6821");
119 | var toPrimitive = __webpack_require__("6a99");
120 | var has = __webpack_require__("69a8");
121 | var IE8_DOM_DEFINE = __webpack_require__("c69a");
122 | var gOPD = Object.getOwnPropertyDescriptor;
123 |
124 | exports.f = __webpack_require__("9e1e") ? gOPD : function getOwnPropertyDescriptor(O, P) {
125 | O = toIObject(O);
126 | P = toPrimitive(P, true);
127 | if (IE8_DOM_DEFINE) try {
128 | return gOPD(O, P);
129 | } catch (e) { /* empty */ }
130 | if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]);
131 | };
132 |
133 |
134 | /***/ }),
135 |
136 | /***/ "1495":
137 | /***/ (function(module, exports, __webpack_require__) {
138 |
139 | var dP = __webpack_require__("86cc");
140 | var anObject = __webpack_require__("cb7c");
141 | var getKeys = __webpack_require__("0d58");
142 |
143 | module.exports = __webpack_require__("9e1e") ? Object.defineProperties : function defineProperties(O, Properties) {
144 | anObject(O);
145 | var keys = getKeys(Properties);
146 | var length = keys.length;
147 | var i = 0;
148 | var P;
149 | while (length > i) dP.f(O, P = keys[i++], Properties[P]);
150 | return O;
151 | };
152 |
153 |
154 | /***/ }),
155 |
156 | /***/ "230e":
157 | /***/ (function(module, exports, __webpack_require__) {
158 |
159 | var isObject = __webpack_require__("d3f4");
160 | var document = __webpack_require__("7726").document;
161 | // typeof document.createElement is 'object' in old IE
162 | var is = isObject(document) && isObject(document.createElement);
163 | module.exports = function (it) {
164 | return is ? document.createElement(it) : {};
165 | };
166 |
167 |
168 | /***/ }),
169 |
170 | /***/ "2aba":
171 | /***/ (function(module, exports, __webpack_require__) {
172 |
173 | var global = __webpack_require__("7726");
174 | var hide = __webpack_require__("32e9");
175 | var has = __webpack_require__("69a8");
176 | var SRC = __webpack_require__("ca5a")('src');
177 | var $toString = __webpack_require__("fa5b");
178 | var TO_STRING = 'toString';
179 | var TPL = ('' + $toString).split(TO_STRING);
180 |
181 | __webpack_require__("8378").inspectSource = function (it) {
182 | return $toString.call(it);
183 | };
184 |
185 | (module.exports = function (O, key, val, safe) {
186 | var isFunction = typeof val == 'function';
187 | if (isFunction) has(val, 'name') || hide(val, 'name', key);
188 | if (O[key] === val) return;
189 | if (isFunction) has(val, SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key)));
190 | if (O === global) {
191 | O[key] = val;
192 | } else if (!safe) {
193 | delete O[key];
194 | hide(O, key, val);
195 | } else if (O[key]) {
196 | O[key] = val;
197 | } else {
198 | hide(O, key, val);
199 | }
200 | // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
201 | })(Function.prototype, TO_STRING, function toString() {
202 | return typeof this == 'function' && this[SRC] || $toString.call(this);
203 | });
204 |
205 |
206 | /***/ }),
207 |
208 | /***/ "2aeb":
209 | /***/ (function(module, exports, __webpack_require__) {
210 |
211 | // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
212 | var anObject = __webpack_require__("cb7c");
213 | var dPs = __webpack_require__("1495");
214 | var enumBugKeys = __webpack_require__("e11e");
215 | var IE_PROTO = __webpack_require__("613b")('IE_PROTO');
216 | var Empty = function () { /* empty */ };
217 | var PROTOTYPE = 'prototype';
218 |
219 | // Create object with fake `null` prototype: use iframe Object with cleared prototype
220 | var createDict = function () {
221 | // Thrash, waste and sodomy: IE GC bug
222 | var iframe = __webpack_require__("230e")('iframe');
223 | var i = enumBugKeys.length;
224 | var lt = '<';
225 | var gt = '>';
226 | var iframeDocument;
227 | iframe.style.display = 'none';
228 | __webpack_require__("fab2").appendChild(iframe);
229 | iframe.src = 'javascript:'; // eslint-disable-line no-script-url
230 | // createDict = iframe.contentWindow.Object;
231 | // html.removeChild(iframe);
232 | iframeDocument = iframe.contentWindow.document;
233 | iframeDocument.open();
234 | iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);
235 | iframeDocument.close();
236 | createDict = iframeDocument.F;
237 | while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];
238 | return createDict();
239 | };
240 |
241 | module.exports = Object.create || function create(O, Properties) {
242 | var result;
243 | if (O !== null) {
244 | Empty[PROTOTYPE] = anObject(O);
245 | result = new Empty();
246 | Empty[PROTOTYPE] = null;
247 | // add "__proto__" for Object.getPrototypeOf polyfill
248 | result[IE_PROTO] = O;
249 | } else result = createDict();
250 | return Properties === undefined ? result : dPs(result, Properties);
251 | };
252 |
253 |
254 | /***/ }),
255 |
256 | /***/ "2d00":
257 | /***/ (function(module, exports) {
258 |
259 | module.exports = false;
260 |
261 |
262 | /***/ }),
263 |
264 | /***/ "2d95":
265 | /***/ (function(module, exports) {
266 |
267 | var toString = {}.toString;
268 |
269 | module.exports = function (it) {
270 | return toString.call(it).slice(8, -1);
271 | };
272 |
273 |
274 | /***/ }),
275 |
276 | /***/ "32e9":
277 | /***/ (function(module, exports, __webpack_require__) {
278 |
279 | var dP = __webpack_require__("86cc");
280 | var createDesc = __webpack_require__("4630");
281 | module.exports = __webpack_require__("9e1e") ? function (object, key, value) {
282 | return dP.f(object, key, createDesc(1, value));
283 | } : function (object, key, value) {
284 | object[key] = value;
285 | return object;
286 | };
287 |
288 |
289 | /***/ }),
290 |
291 | /***/ "4588":
292 | /***/ (function(module, exports) {
293 |
294 | // 7.1.4 ToInteger
295 | var ceil = Math.ceil;
296 | var floor = Math.floor;
297 | module.exports = function (it) {
298 | return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);
299 | };
300 |
301 |
302 | /***/ }),
303 |
304 | /***/ "4630":
305 | /***/ (function(module, exports) {
306 |
307 | module.exports = function (bitmap, value) {
308 | return {
309 | enumerable: !(bitmap & 1),
310 | configurable: !(bitmap & 2),
311 | writable: !(bitmap & 4),
312 | value: value
313 | };
314 | };
315 |
316 |
317 | /***/ }),
318 |
319 | /***/ "52a7":
320 | /***/ (function(module, exports) {
321 |
322 | exports.f = {}.propertyIsEnumerable;
323 |
324 |
325 | /***/ }),
326 |
327 | /***/ "5537":
328 | /***/ (function(module, exports, __webpack_require__) {
329 |
330 | var core = __webpack_require__("8378");
331 | var global = __webpack_require__("7726");
332 | var SHARED = '__core-js_shared__';
333 | var store = global[SHARED] || (global[SHARED] = {});
334 |
335 | (module.exports = function (key, value) {
336 | return store[key] || (store[key] = value !== undefined ? value : {});
337 | })('versions', []).push({
338 | version: core.version,
339 | mode: __webpack_require__("2d00") ? 'pure' : 'global',
340 | copyright: '© 2019 Denis Pushkarev (zloirock.ru)'
341 | });
342 |
343 |
344 | /***/ }),
345 |
346 | /***/ "5ca1":
347 | /***/ (function(module, exports, __webpack_require__) {
348 |
349 | var global = __webpack_require__("7726");
350 | var core = __webpack_require__("8378");
351 | var hide = __webpack_require__("32e9");
352 | var redefine = __webpack_require__("2aba");
353 | var ctx = __webpack_require__("9b43");
354 | var PROTOTYPE = 'prototype';
355 |
356 | var $export = function (type, name, source) {
357 | var IS_FORCED = type & $export.F;
358 | var IS_GLOBAL = type & $export.G;
359 | var IS_STATIC = type & $export.S;
360 | var IS_PROTO = type & $export.P;
361 | var IS_BIND = type & $export.B;
362 | var target = IS_GLOBAL ? global : IS_STATIC ? global[name] || (global[name] = {}) : (global[name] || {})[PROTOTYPE];
363 | var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});
364 | var expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {});
365 | var key, own, out, exp;
366 | if (IS_GLOBAL) source = name;
367 | for (key in source) {
368 | // contains in native
369 | own = !IS_FORCED && target && target[key] !== undefined;
370 | // export native or passed
371 | out = (own ? target : source)[key];
372 | // bind timers to global for call from export context
373 | exp = IS_BIND && own ? ctx(out, global) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;
374 | // extend global
375 | if (target) redefine(target, key, out, type & $export.U);
376 | // export
377 | if (exports[key] != out) hide(exports, key, exp);
378 | if (IS_PROTO && expProto[key] != out) expProto[key] = out;
379 | }
380 | };
381 | global.core = core;
382 | // type bitmap
383 | $export.F = 1; // forced
384 | $export.G = 2; // global
385 | $export.S = 4; // static
386 | $export.P = 8; // proto
387 | $export.B = 16; // bind
388 | $export.W = 32; // wrap
389 | $export.U = 64; // safe
390 | $export.R = 128; // real proto method for `library`
391 | module.exports = $export;
392 |
393 |
394 | /***/ }),
395 |
396 | /***/ "5dbc":
397 | /***/ (function(module, exports, __webpack_require__) {
398 |
399 | var isObject = __webpack_require__("d3f4");
400 | var setPrototypeOf = __webpack_require__("8b97").set;
401 | module.exports = function (that, target, C) {
402 | var S = target.constructor;
403 | var P;
404 | if (S !== C && typeof S == 'function' && (P = S.prototype) !== C.prototype && isObject(P) && setPrototypeOf) {
405 | setPrototypeOf(that, P);
406 | } return that;
407 | };
408 |
409 |
410 | /***/ }),
411 |
412 | /***/ "613b":
413 | /***/ (function(module, exports, __webpack_require__) {
414 |
415 | var shared = __webpack_require__("5537")('keys');
416 | var uid = __webpack_require__("ca5a");
417 | module.exports = function (key) {
418 | return shared[key] || (shared[key] = uid(key));
419 | };
420 |
421 |
422 | /***/ }),
423 |
424 | /***/ "626a":
425 | /***/ (function(module, exports, __webpack_require__) {
426 |
427 | // fallback for non-array-like ES3 and non-enumerable old V8 strings
428 | var cof = __webpack_require__("2d95");
429 | // eslint-disable-next-line no-prototype-builtins
430 | module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
431 | return cof(it) == 'String' ? it.split('') : Object(it);
432 | };
433 |
434 |
435 | /***/ }),
436 |
437 | /***/ "6821":
438 | /***/ (function(module, exports, __webpack_require__) {
439 |
440 | // to indexed object, toObject with fallback for non-array-like ES3 strings
441 | var IObject = __webpack_require__("626a");
442 | var defined = __webpack_require__("be13");
443 | module.exports = function (it) {
444 | return IObject(defined(it));
445 | };
446 |
447 |
448 | /***/ }),
449 |
450 | /***/ "69a8":
451 | /***/ (function(module, exports) {
452 |
453 | var hasOwnProperty = {}.hasOwnProperty;
454 | module.exports = function (it, key) {
455 | return hasOwnProperty.call(it, key);
456 | };
457 |
458 |
459 | /***/ }),
460 |
461 | /***/ "6a99":
462 | /***/ (function(module, exports, __webpack_require__) {
463 |
464 | // 7.1.1 ToPrimitive(input [, PreferredType])
465 | var isObject = __webpack_require__("d3f4");
466 | // instead of the ES6 spec version, we didn't implement @@toPrimitive case
467 | // and the second argument - flag - preferred type is a string
468 | module.exports = function (it, S) {
469 | if (!isObject(it)) return it;
470 | var fn, val;
471 | if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
472 | if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;
473 | if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
474 | throw TypeError("Can't convert object to primitive value");
475 | };
476 |
477 |
478 | /***/ }),
479 |
480 | /***/ "7726":
481 | /***/ (function(module, exports) {
482 |
483 | // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
484 | var global = module.exports = typeof window != 'undefined' && window.Math == Math
485 | ? window : typeof self != 'undefined' && self.Math == Math ? self
486 | // eslint-disable-next-line no-new-func
487 | : Function('return this')();
488 | if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef
489 |
490 |
491 | /***/ }),
492 |
493 | /***/ "77f1":
494 | /***/ (function(module, exports, __webpack_require__) {
495 |
496 | var toInteger = __webpack_require__("4588");
497 | var max = Math.max;
498 | var min = Math.min;
499 | module.exports = function (index, length) {
500 | index = toInteger(index);
501 | return index < 0 ? max(index + length, 0) : min(index, length);
502 | };
503 |
504 |
505 | /***/ }),
506 |
507 | /***/ "79e5":
508 | /***/ (function(module, exports) {
509 |
510 | module.exports = function (exec) {
511 | try {
512 | return !!exec();
513 | } catch (e) {
514 | return true;
515 | }
516 | };
517 |
518 |
519 | /***/ }),
520 |
521 | /***/ "8378":
522 | /***/ (function(module, exports) {
523 |
524 | var core = module.exports = { version: '2.6.9' };
525 | if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef
526 |
527 |
528 | /***/ }),
529 |
530 | /***/ "86cc":
531 | /***/ (function(module, exports, __webpack_require__) {
532 |
533 | var anObject = __webpack_require__("cb7c");
534 | var IE8_DOM_DEFINE = __webpack_require__("c69a");
535 | var toPrimitive = __webpack_require__("6a99");
536 | var dP = Object.defineProperty;
537 |
538 | exports.f = __webpack_require__("9e1e") ? Object.defineProperty : function defineProperty(O, P, Attributes) {
539 | anObject(O);
540 | P = toPrimitive(P, true);
541 | anObject(Attributes);
542 | if (IE8_DOM_DEFINE) try {
543 | return dP(O, P, Attributes);
544 | } catch (e) { /* empty */ }
545 | if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');
546 | if ('value' in Attributes) O[P] = Attributes.value;
547 | return O;
548 | };
549 |
550 |
551 | /***/ }),
552 |
553 | /***/ "8b97":
554 | /***/ (function(module, exports, __webpack_require__) {
555 |
556 | // Works with __proto__ only. Old v8 can't work with null proto objects.
557 | /* eslint-disable no-proto */
558 | var isObject = __webpack_require__("d3f4");
559 | var anObject = __webpack_require__("cb7c");
560 | var check = function (O, proto) {
561 | anObject(O);
562 | if (!isObject(proto) && proto !== null) throw TypeError(proto + ": can't set as prototype!");
563 | };
564 | module.exports = {
565 | set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line
566 | function (test, buggy, set) {
567 | try {
568 | set = __webpack_require__("9b43")(Function.call, __webpack_require__("11e9").f(Object.prototype, '__proto__').set, 2);
569 | set(test, []);
570 | buggy = !(test instanceof Array);
571 | } catch (e) { buggy = true; }
572 | return function setPrototypeOf(O, proto) {
573 | check(O, proto);
574 | if (buggy) O.__proto__ = proto;
575 | else set(O, proto);
576 | return O;
577 | };
578 | }({}, false) : undefined),
579 | check: check
580 | };
581 |
582 |
583 | /***/ }),
584 |
585 | /***/ "9093":
586 | /***/ (function(module, exports, __webpack_require__) {
587 |
588 | // 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)
589 | var $keys = __webpack_require__("ce10");
590 | var hiddenKeys = __webpack_require__("e11e").concat('length', 'prototype');
591 |
592 | exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
593 | return $keys(O, hiddenKeys);
594 | };
595 |
596 |
597 | /***/ }),
598 |
599 | /***/ "9b43":
600 | /***/ (function(module, exports, __webpack_require__) {
601 |
602 | // optional / simple context binding
603 | var aFunction = __webpack_require__("d8e8");
604 | module.exports = function (fn, that, length) {
605 | aFunction(fn);
606 | if (that === undefined) return fn;
607 | switch (length) {
608 | case 1: return function (a) {
609 | return fn.call(that, a);
610 | };
611 | case 2: return function (a, b) {
612 | return fn.call(that, a, b);
613 | };
614 | case 3: return function (a, b, c) {
615 | return fn.call(that, a, b, c);
616 | };
617 | }
618 | return function (/* ...args */) {
619 | return fn.apply(that, arguments);
620 | };
621 | };
622 |
623 |
624 | /***/ }),
625 |
626 | /***/ "9def":
627 | /***/ (function(module, exports, __webpack_require__) {
628 |
629 | // 7.1.15 ToLength
630 | var toInteger = __webpack_require__("4588");
631 | var min = Math.min;
632 | module.exports = function (it) {
633 | return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991
634 | };
635 |
636 |
637 | /***/ }),
638 |
639 | /***/ "9e1e":
640 | /***/ (function(module, exports, __webpack_require__) {
641 |
642 | // Thank's IE8 for his funny defineProperty
643 | module.exports = !__webpack_require__("79e5")(function () {
644 | return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
645 | });
646 |
647 |
648 | /***/ }),
649 |
650 | /***/ "aa77":
651 | /***/ (function(module, exports, __webpack_require__) {
652 |
653 | var $export = __webpack_require__("5ca1");
654 | var defined = __webpack_require__("be13");
655 | var fails = __webpack_require__("79e5");
656 | var spaces = __webpack_require__("fdef");
657 | var space = '[' + spaces + ']';
658 | var non = '\u200b\u0085';
659 | var ltrim = RegExp('^' + space + space + '*');
660 | var rtrim = RegExp(space + space + '*$');
661 |
662 | var exporter = function (KEY, exec, ALIAS) {
663 | var exp = {};
664 | var FORCE = fails(function () {
665 | return !!spaces[KEY]() || non[KEY]() != non;
666 | });
667 | var fn = exp[KEY] = FORCE ? exec(trim) : spaces[KEY];
668 | if (ALIAS) exp[ALIAS] = fn;
669 | $export($export.P + $export.F * FORCE, 'String', exp);
670 | };
671 |
672 | // 1 -> String#trimLeft
673 | // 2 -> String#trimRight
674 | // 3 -> String#trim
675 | var trim = exporter.trim = function (string, TYPE) {
676 | string = String(defined(string));
677 | if (TYPE & 1) string = string.replace(ltrim, '');
678 | if (TYPE & 2) string = string.replace(rtrim, '');
679 | return string;
680 | };
681 |
682 | module.exports = exporter;
683 |
684 |
685 | /***/ }),
686 |
687 | /***/ "be13":
688 | /***/ (function(module, exports) {
689 |
690 | // 7.2.1 RequireObjectCoercible(argument)
691 | module.exports = function (it) {
692 | if (it == undefined) throw TypeError("Can't call method on " + it);
693 | return it;
694 | };
695 |
696 |
697 | /***/ }),
698 |
699 | /***/ "c366":
700 | /***/ (function(module, exports, __webpack_require__) {
701 |
702 | // false -> Array#indexOf
703 | // true -> Array#includes
704 | var toIObject = __webpack_require__("6821");
705 | var toLength = __webpack_require__("9def");
706 | var toAbsoluteIndex = __webpack_require__("77f1");
707 | module.exports = function (IS_INCLUDES) {
708 | return function ($this, el, fromIndex) {
709 | var O = toIObject($this);
710 | var length = toLength(O.length);
711 | var index = toAbsoluteIndex(fromIndex, length);
712 | var value;
713 | // Array#includes uses SameValueZero equality algorithm
714 | // eslint-disable-next-line no-self-compare
715 | if (IS_INCLUDES && el != el) while (length > index) {
716 | value = O[index++];
717 | // eslint-disable-next-line no-self-compare
718 | if (value != value) return true;
719 | // Array#indexOf ignores holes, Array#includes - not
720 | } else for (;length > index; index++) if (IS_INCLUDES || index in O) {
721 | if (O[index] === el) return IS_INCLUDES || index || 0;
722 | } return !IS_INCLUDES && -1;
723 | };
724 | };
725 |
726 |
727 | /***/ }),
728 |
729 | /***/ "c5f6":
730 | /***/ (function(module, exports, __webpack_require__) {
731 |
732 | "use strict";
733 |
734 | var global = __webpack_require__("7726");
735 | var has = __webpack_require__("69a8");
736 | var cof = __webpack_require__("2d95");
737 | var inheritIfRequired = __webpack_require__("5dbc");
738 | var toPrimitive = __webpack_require__("6a99");
739 | var fails = __webpack_require__("79e5");
740 | var gOPN = __webpack_require__("9093").f;
741 | var gOPD = __webpack_require__("11e9").f;
742 | var dP = __webpack_require__("86cc").f;
743 | var $trim = __webpack_require__("aa77").trim;
744 | var NUMBER = 'Number';
745 | var $Number = global[NUMBER];
746 | var Base = $Number;
747 | var proto = $Number.prototype;
748 | // Opera ~12 has broken Object#toString
749 | var BROKEN_COF = cof(__webpack_require__("2aeb")(proto)) == NUMBER;
750 | var TRIM = 'trim' in String.prototype;
751 |
752 | // 7.1.3 ToNumber(argument)
753 | var toNumber = function (argument) {
754 | var it = toPrimitive(argument, false);
755 | if (typeof it == 'string' && it.length > 2) {
756 | it = TRIM ? it.trim() : $trim(it, 3);
757 | var first = it.charCodeAt(0);
758 | var third, radix, maxCode;
759 | if (first === 43 || first === 45) {
760 | third = it.charCodeAt(2);
761 | if (third === 88 || third === 120) return NaN; // Number('+0x1') should be NaN, old V8 fix
762 | } else if (first === 48) {
763 | switch (it.charCodeAt(1)) {
764 | case 66: case 98: radix = 2; maxCode = 49; break; // fast equal /^0b[01]+$/i
765 | case 79: case 111: radix = 8; maxCode = 55; break; // fast equal /^0o[0-7]+$/i
766 | default: return +it;
767 | }
768 | for (var digits = it.slice(2), i = 0, l = digits.length, code; i < l; i++) {
769 | code = digits.charCodeAt(i);
770 | // parseInt parses a string to a first unavailable symbol
771 | // but ToNumber should return NaN if a string contains unavailable symbols
772 | if (code < 48 || code > maxCode) return NaN;
773 | } return parseInt(digits, radix);
774 | }
775 | } return +it;
776 | };
777 |
778 | if (!$Number(' 0o1') || !$Number('0b1') || $Number('+0x1')) {
779 | $Number = function Number(value) {
780 | var it = arguments.length < 1 ? 0 : value;
781 | var that = this;
782 | return that instanceof $Number
783 | // check on 1..constructor(foo) case
784 | && (BROKEN_COF ? fails(function () { proto.valueOf.call(that); }) : cof(that) != NUMBER)
785 | ? inheritIfRequired(new Base(toNumber(it)), that, $Number) : toNumber(it);
786 | };
787 | for (var keys = __webpack_require__("9e1e") ? gOPN(Base) : (
788 | // ES3:
789 | 'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' +
790 | // ES6 (in case, if modules with ES6 Number statics required before):
791 | 'EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,' +
792 | 'MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger'
793 | ).split(','), j = 0, key; keys.length > j; j++) {
794 | if (has(Base, key = keys[j]) && !has($Number, key)) {
795 | dP($Number, key, gOPD(Base, key));
796 | }
797 | }
798 | $Number.prototype = proto;
799 | proto.constructor = $Number;
800 | __webpack_require__("2aba")(global, NUMBER, $Number);
801 | }
802 |
803 |
804 | /***/ }),
805 |
806 | /***/ "c69a":
807 | /***/ (function(module, exports, __webpack_require__) {
808 |
809 | module.exports = !__webpack_require__("9e1e") && !__webpack_require__("79e5")(function () {
810 | return Object.defineProperty(__webpack_require__("230e")('div'), 'a', { get: function () { return 7; } }).a != 7;
811 | });
812 |
813 |
814 | /***/ }),
815 |
816 | /***/ "ca5a":
817 | /***/ (function(module, exports) {
818 |
819 | var id = 0;
820 | var px = Math.random();
821 | module.exports = function (key) {
822 | return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));
823 | };
824 |
825 |
826 | /***/ }),
827 |
828 | /***/ "cb7c":
829 | /***/ (function(module, exports, __webpack_require__) {
830 |
831 | var isObject = __webpack_require__("d3f4");
832 | module.exports = function (it) {
833 | if (!isObject(it)) throw TypeError(it + ' is not an object!');
834 | return it;
835 | };
836 |
837 |
838 | /***/ }),
839 |
840 | /***/ "ce10":
841 | /***/ (function(module, exports, __webpack_require__) {
842 |
843 | var has = __webpack_require__("69a8");
844 | var toIObject = __webpack_require__("6821");
845 | var arrayIndexOf = __webpack_require__("c366")(false);
846 | var IE_PROTO = __webpack_require__("613b")('IE_PROTO');
847 |
848 | module.exports = function (object, names) {
849 | var O = toIObject(object);
850 | var i = 0;
851 | var result = [];
852 | var key;
853 | for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key);
854 | // Don't enum bug & hidden keys
855 | while (names.length > i) if (has(O, key = names[i++])) {
856 | ~arrayIndexOf(result, key) || result.push(key);
857 | }
858 | return result;
859 | };
860 |
861 |
862 | /***/ }),
863 |
864 | /***/ "d3f4":
865 | /***/ (function(module, exports) {
866 |
867 | module.exports = function (it) {
868 | return typeof it === 'object' ? it !== null : typeof it === 'function';
869 | };
870 |
871 |
872 | /***/ }),
873 |
874 | /***/ "d8e8":
875 | /***/ (function(module, exports) {
876 |
877 | module.exports = function (it) {
878 | if (typeof it != 'function') throw TypeError(it + ' is not a function!');
879 | return it;
880 | };
881 |
882 |
883 | /***/ }),
884 |
885 | /***/ "e11e":
886 | /***/ (function(module, exports) {
887 |
888 | // IE 8- don't enum bug keys
889 | module.exports = (
890 | 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'
891 | ).split(',');
892 |
893 |
894 | /***/ }),
895 |
896 | /***/ "f6fd":
897 | /***/ (function(module, exports) {
898 |
899 | // document.currentScript polyfill by Adam Miller
900 |
901 | // MIT license
902 |
903 | (function(document){
904 | var currentScript = "currentScript",
905 | scripts = document.getElementsByTagName('script'); // Live NodeList collection
906 |
907 | // If browser needs currentScript polyfill, add get currentScript() to the document object
908 | if (!(currentScript in document)) {
909 | Object.defineProperty(document, currentScript, {
910 | get: function(){
911 |
912 | // IE 6-10 supports script readyState
913 | // IE 10+ support stack trace
914 | try { throw new Error(); }
915 | catch (err) {
916 |
917 | // Find the second match for the "at" string to get file src url from stack.
918 | // Specifically works with the format of stack traces in IE.
919 | var i, res = ((/.*at [^\(]*\((.*):.+:.+\)$/ig).exec(err.stack) || [false])[1];
920 |
921 | // For all scripts on the page, if src matches or if ready state is interactive, return the script tag
922 | for(i in scripts){
923 | if(scripts[i].src == res || scripts[i].readyState == "interactive"){
924 | return scripts[i];
925 | }
926 | }
927 |
928 | // If no match, return null
929 | return null;
930 | }
931 | }
932 | });
933 | }
934 | })(document);
935 |
936 |
937 | /***/ }),
938 |
939 | /***/ "fa5b":
940 | /***/ (function(module, exports, __webpack_require__) {
941 |
942 | module.exports = __webpack_require__("5537")('native-function-to-string', Function.toString);
943 |
944 |
945 | /***/ }),
946 |
947 | /***/ "fab2":
948 | /***/ (function(module, exports, __webpack_require__) {
949 |
950 | var document = __webpack_require__("7726").document;
951 | module.exports = document && document.documentElement;
952 |
953 |
954 | /***/ }),
955 |
956 | /***/ "fae3":
957 | /***/ (function(module, __webpack_exports__, __webpack_require__) {
958 |
959 | "use strict";
960 | __webpack_require__.r(__webpack_exports__);
961 |
962 | // CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js
963 | // This file is imported into lib/wc client bundles.
964 |
965 | if (typeof window !== 'undefined') {
966 | if (true) {
967 | __webpack_require__("f6fd")
968 | }
969 |
970 | var i
971 | if ((i = window.document.currentScript) && (i = i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))) {
972 | __webpack_require__.p = i[1] // eslint-disable-line
973 | }
974 | }
975 |
976 | // Indicate to webpack that this file can be concatenated
977 | /* harmony default export */ var setPublicPath = (null);
978 |
979 | // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"4f429782-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/parallax-container.vue?vue&type=template&id=5ff65e2c&
980 | var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c(_vm.tag,{tag:"component",style:({perspective: (_vm.perspective + "px")}),on:{"mousemove":_vm.getMousePosition,"mouseleave":_vm.parallaxStop,"mouseenter":_vm.parallaxStart}},[_vm._t("default")],2)}
981 | var staticRenderFns = []
982 |
983 |
984 | // CONCATENATED MODULE: ./src/components/parallax-container.vue?vue&type=template&id=5ff65e2c&
985 |
986 | // EXTERNAL MODULE: ./node_modules/core-js/modules/es6.number.constructor.js
987 | var es6_number_constructor = __webpack_require__("c5f6");
988 |
989 | // CONCATENATED MODULE: ./src/lib/throttle.js
990 | function throttle(callback, delay) {
991 | var last;
992 | var timer; // eslint-disable-next-line func-names
993 |
994 | return function () {
995 | var context = this;
996 | var newDelay = this.animationDuration > 1000 ? delay : this.animationDuration / 10;
997 | var now = +new Date(); // eslint-disable-next-line prefer-rest-params
998 |
999 | var args = arguments;
1000 |
1001 | if (last && now < last + newDelay) {
1002 | clearTimeout(timer);
1003 | timer = setTimeout(function () {
1004 | last = now;
1005 | callback.apply(context, args);
1006 | }, newDelay);
1007 | } else {
1008 | last = now;
1009 | callback.apply(context, args);
1010 | }
1011 | };
1012 | }
1013 | // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/parallax-container.vue?vue&type=script&lang=js&
1014 |
1015 | //
1016 | //
1017 | //
1018 | //
1019 | //
1020 | //
1021 | //
1022 | //
1023 | //
1024 | //
1025 | //
1026 | //
1027 |
1028 | /* harmony default export */ var parallax_containervue_type_script_lang_js_ = ({
1029 | name: 'ParallaxContainer',
1030 | provide: function provide() {
1031 | var _this = this;
1032 |
1033 | var context = {};
1034 | Object.defineProperty(context, 'mousePosition', {
1035 | enumerable: true,
1036 | get: function get() {
1037 | return _this.mousePosition;
1038 | }
1039 | });
1040 | Object.defineProperty(context, 'isHovering', {
1041 | enumerable: true,
1042 | get: function get() {
1043 | return _this.isHovering;
1044 | }
1045 | });
1046 | Object.defineProperty(context, 'isHoverable', {
1047 | enumerable: true,
1048 | get: function get() {
1049 | return _this.isHoverable;
1050 | }
1051 | });
1052 | Object.defineProperty(context, 'didEnter', {
1053 | enumerable: true,
1054 | get: function get() {
1055 | return _this.didEnter;
1056 | }
1057 | });
1058 | Object.defineProperty(context, 'animationDuration', {
1059 | enumerable: true,
1060 | get: function get() {
1061 | return _this.animationDuration;
1062 | }
1063 | });
1064 | Object.defineProperty(context, 'easing', {
1065 | enumerable: true,
1066 | get: function get() {
1067 | return _this.easing;
1068 | }
1069 | });
1070 | Object.defineProperty(context, 'shape', {
1071 | enumerable: true,
1072 | get: function get() {
1073 | return _this.shape;
1074 | }
1075 | });
1076 | return {
1077 | context: context
1078 | };
1079 | },
1080 | data: function data() {
1081 | return {
1082 | mousePosition: {
1083 | x: 0,
1084 | y: 0
1085 | },
1086 | isHovering: false,
1087 | isHoverable: false,
1088 | attemptedHover: false,
1089 | didEnter: false,
1090 | shape: null
1091 | };
1092 | },
1093 | props: {
1094 | animationDuration: {
1095 | type: Number,
1096 | default: 1000
1097 | },
1098 | easing: {
1099 | type: String,
1100 | default: 'cubic-bezier(0.23, 1, 0.32, 1)'
1101 | },
1102 | tag: {
1103 | type: String,
1104 | default: 'div'
1105 | },
1106 | perspective: {
1107 | type: Number,
1108 | default: 1000
1109 | }
1110 | },
1111 | mounted: function mounted() {
1112 | var _this2 = this;
1113 |
1114 | this.shape = this.$el.getBoundingClientRect();
1115 | setTimeout(function () {
1116 | _this2.isHoverable = true;
1117 |
1118 | if (_this2.attemptedHover) {
1119 | _this2.parallaxStart();
1120 | }
1121 | }, 100);
1122 | },
1123 | methods: {
1124 | getRelativePosition: function getRelativePosition() {
1125 | var shape = this.$el.getBoundingClientRect();
1126 | return {
1127 | top: shape.top,
1128 | left: shape.left
1129 | };
1130 | },
1131 | // eslint-disable-next-line func-names
1132 | getMousePosition: throttle(function (event) {
1133 | this.shape = this.$el.getBoundingClientRect();
1134 | this.mousePosition.x = event.clientX;
1135 | this.mousePosition.y = event.clientY;
1136 | }, 100),
1137 | parallaxStart: function parallaxStart() {
1138 | var _this3 = this;
1139 |
1140 | this.attemptedHover = true;
1141 |
1142 | if (this.isHoverable) {
1143 | this.isHovering = true;
1144 | this.didEnter = false;
1145 | setTimeout(function () {
1146 | _this3.didEnter = true;
1147 | }, 1000);
1148 | }
1149 | },
1150 | parallaxStop: function parallaxStop() {
1151 | this.isHovering = false;
1152 | this.didEnter = false;
1153 | }
1154 | }
1155 | });
1156 | // CONCATENATED MODULE: ./src/components/parallax-container.vue?vue&type=script&lang=js&
1157 | /* harmony default export */ var components_parallax_containervue_type_script_lang_js_ = (parallax_containervue_type_script_lang_js_);
1158 | // CONCATENATED MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
1159 | /* globals __VUE_SSR_CONTEXT__ */
1160 |
1161 | // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
1162 | // This module is a runtime utility for cleaner component module output and will
1163 | // be included in the final webpack user bundle.
1164 |
1165 | function normalizeComponent (
1166 | scriptExports,
1167 | render,
1168 | staticRenderFns,
1169 | functionalTemplate,
1170 | injectStyles,
1171 | scopeId,
1172 | moduleIdentifier, /* server only */
1173 | shadowMode /* vue-cli only */
1174 | ) {
1175 | // Vue.extend constructor export interop
1176 | var options = typeof scriptExports === 'function'
1177 | ? scriptExports.options
1178 | : scriptExports
1179 |
1180 | // render functions
1181 | if (render) {
1182 | options.render = render
1183 | options.staticRenderFns = staticRenderFns
1184 | options._compiled = true
1185 | }
1186 |
1187 | // functional template
1188 | if (functionalTemplate) {
1189 | options.functional = true
1190 | }
1191 |
1192 | // scopedId
1193 | if (scopeId) {
1194 | options._scopeId = 'data-v-' + scopeId
1195 | }
1196 |
1197 | var hook
1198 | if (moduleIdentifier) { // server build
1199 | hook = function (context) {
1200 | // 2.3 injection
1201 | context =
1202 | context || // cached call
1203 | (this.$vnode && this.$vnode.ssrContext) || // stateful
1204 | (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
1205 | // 2.2 with runInNewContext: true
1206 | if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
1207 | context = __VUE_SSR_CONTEXT__
1208 | }
1209 | // inject component styles
1210 | if (injectStyles) {
1211 | injectStyles.call(this, context)
1212 | }
1213 | // register component module identifier for async chunk inferrence
1214 | if (context && context._registeredComponents) {
1215 | context._registeredComponents.add(moduleIdentifier)
1216 | }
1217 | }
1218 | // used by ssr in case component is cached and beforeCreate
1219 | // never gets called
1220 | options._ssrRegister = hook
1221 | } else if (injectStyles) {
1222 | hook = shadowMode
1223 | ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
1224 | : injectStyles
1225 | }
1226 |
1227 | if (hook) {
1228 | if (options.functional) {
1229 | // for template-only hot-reload because in that case the render fn doesn't
1230 | // go through the normalizer
1231 | options._injectStyles = hook
1232 | // register for functioal component in vue file
1233 | var originalRender = options.render
1234 | options.render = function renderWithStyleInjection (h, context) {
1235 | hook.call(context)
1236 | return originalRender(h, context)
1237 | }
1238 | } else {
1239 | // inject component registration as beforeCreate hook
1240 | var existing = options.beforeCreate
1241 | options.beforeCreate = existing
1242 | ? [].concat(existing, hook)
1243 | : [hook]
1244 | }
1245 | }
1246 |
1247 | return {
1248 | exports: scriptExports,
1249 | options: options
1250 | }
1251 | }
1252 |
1253 | // CONCATENATED MODULE: ./src/components/parallax-container.vue
1254 |
1255 |
1256 |
1257 |
1258 |
1259 | /* normalize component */
1260 |
1261 | var component = normalizeComponent(
1262 | components_parallax_containervue_type_script_lang_js_,
1263 | render,
1264 | staticRenderFns,
1265 | false,
1266 | null,
1267 | null,
1268 | null
1269 |
1270 | )
1271 |
1272 | /* harmony default export */ var parallax_container = (component.exports);
1273 | // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"4f429782-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/parallax-element.vue?vue&type=template&id=2f75f72a&
1274 | var parallax_elementvue_type_template_id_2f75f72a_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c(_vm.tag,{tag:"component",style:(Object.assign({}, _vm.transform, _vm.transformParameters))},[_vm._t("default")],2)}
1275 | var parallax_elementvue_type_template_id_2f75f72a_staticRenderFns = []
1276 |
1277 |
1278 | // CONCATENATED MODULE: ./src/components/parallax-element.vue?vue&type=template&id=2f75f72a&
1279 |
1280 | // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/parallax-element.vue?vue&type=script&lang=js&
1281 |
1282 | //
1283 | //
1284 | //
1285 | //
1286 | //
1287 | //
1288 | /* harmony default export */ var parallax_elementvue_type_script_lang_js_ = ({
1289 | name: 'ParallaxElement',
1290 | props: {
1291 | parallaxStrength: {
1292 | type: Number,
1293 | default: 10
1294 | },
1295 | type: {
1296 | type: String,
1297 | default: 'translation'
1298 | },
1299 | tag: {
1300 | type: String,
1301 | default: 'div'
1302 | },
1303 | limitX: {
1304 | type: Boolean,
1305 | default: false
1306 | },
1307 | limitY: {
1308 | type: Boolean,
1309 | default: false
1310 | }
1311 | },
1312 | inject: ['context'],
1313 | computed: {
1314 | transform: function transform() {
1315 | var _this$context = this.context,
1316 | isHovering = _this$context.isHovering,
1317 | mousePosition = _this$context.mousePosition,
1318 | shape = _this$context.shape;
1319 | if (!isHovering) return;
1320 | var parallaxStrength = this.type === 'depth' ? Math.abs(this.parallaxStrength) : this.parallaxStrength;
1321 | var relativeX = mousePosition.x - shape.left;
1322 | var relativeY = mousePosition.y - shape.top;
1323 | var movementX = (relativeX - shape.width / 2) / (shape.width / 2) * parallaxStrength;
1324 | var movementY = (relativeY - shape.height / 2) / (shape.height / 2) * parallaxStrength;
1325 | var transform;
1326 |
1327 | if (this.type === 'translation') {
1328 | transform = "translate3d(".concat(this.limitY ? 0 : -movementX, "px, ").concat(this.limitX ? 0 : -movementY, "px, 0)");
1329 | } else if (this.type === 'rotation') {
1330 | var movement;
1331 |
1332 | if (this.limitX) {
1333 | movement = movementX * 2;
1334 | } else if (this.limitY) {
1335 | movement = movementY * 2;
1336 | } else {
1337 | movement = movementX + movementY;
1338 | }
1339 |
1340 | transform = "rotate3d(0,0,1,".concat(movement, "deg)");
1341 | } else if (this.type === 'depth') {
1342 | transform = "rotateX(".concat(this.limitX ? 0 : -movementY, "deg) rotateY(").concat(this.limitY ? 0 : movementX, "deg) translate3d(0,0,").concat(this.parallaxStrength * 2, "px)");
1343 | } // eslint-disable-next-line consistent-return
1344 |
1345 |
1346 | return {
1347 | transform: transform
1348 | };
1349 | },
1350 | transformParameters: function transformParameters() {
1351 | return {
1352 | transitionProperty: 'transform',
1353 | transitionDuration: this.transitionDuration,
1354 | transformOrigin: 'center',
1355 | transitionTimingFunction: this.transitionTimingFunction
1356 | };
1357 | },
1358 | transitionDuration: function transitionDuration() {
1359 | var _this$context2 = this.context,
1360 | animationDuration = _this$context2.animationDuration,
1361 | didEnter = _this$context2.didEnter;
1362 | var durationException = animationDuration > 400 ? animationDuration : 400;
1363 | var duration = didEnter ? animationDuration : durationException;
1364 | return "".concat(duration, "ms");
1365 | },
1366 | transitionTimingFunction: function transitionTimingFunction() {
1367 | return this.context.easing;
1368 | }
1369 | }
1370 | });
1371 | // CONCATENATED MODULE: ./src/components/parallax-element.vue?vue&type=script&lang=js&
1372 | /* harmony default export */ var components_parallax_elementvue_type_script_lang_js_ = (parallax_elementvue_type_script_lang_js_);
1373 | // CONCATENATED MODULE: ./src/components/parallax-element.vue
1374 |
1375 |
1376 |
1377 |
1378 |
1379 | /* normalize component */
1380 |
1381 | var parallax_element_component = normalizeComponent(
1382 | components_parallax_elementvue_type_script_lang_js_,
1383 | parallax_elementvue_type_template_id_2f75f72a_render,
1384 | parallax_elementvue_type_template_id_2f75f72a_staticRenderFns,
1385 | false,
1386 | null,
1387 | null,
1388 | null
1389 |
1390 | )
1391 |
1392 | /* harmony default export */ var parallax_element = (parallax_element_component.exports);
1393 | // CONCATENATED MODULE: ./src/components/index.js
1394 |
1395 |
1396 | // CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib-no-default.js
1397 | /* concated harmony reexport ParallaxContainer */__webpack_require__.d(__webpack_exports__, "ParallaxContainer", function() { return parallax_container; });
1398 | /* concated harmony reexport ParallaxElement */__webpack_require__.d(__webpack_exports__, "ParallaxElement", function() { return parallax_element; });
1399 |
1400 |
1401 |
1402 |
1403 | /***/ }),
1404 |
1405 | /***/ "fdef":
1406 | /***/ (function(module, exports) {
1407 |
1408 | module.exports = '\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003' +
1409 | '\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
1410 |
1411 |
1412 | /***/ })
1413 |
1414 | /******/ });
1415 | });
1416 | //# sourceMappingURL=vue-mouse-parallax.umd.js.map
--------------------------------------------------------------------------------
/dist/vue-mouse-parallax.umd.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["webpack://vue-mouse-parallax/webpack/universalModuleDefinition","webpack://vue-mouse-parallax/webpack/bootstrap","webpack://vue-mouse-parallax/./node_modules/core-js/modules/_object-keys.js","webpack://vue-mouse-parallax/./node_modules/core-js/modules/_object-gopd.js","webpack://vue-mouse-parallax/./node_modules/core-js/modules/_object-dps.js","webpack://vue-mouse-parallax/./node_modules/core-js/modules/_dom-create.js","webpack://vue-mouse-parallax/./node_modules/core-js/modules/_redefine.js","webpack://vue-mouse-parallax/./node_modules/core-js/modules/_object-create.js","webpack://vue-mouse-parallax/./node_modules/core-js/modules/_library.js","webpack://vue-mouse-parallax/./node_modules/core-js/modules/_cof.js","webpack://vue-mouse-parallax/./node_modules/core-js/modules/_hide.js","webpack://vue-mouse-parallax/./node_modules/core-js/modules/_to-integer.js","webpack://vue-mouse-parallax/./node_modules/core-js/modules/_property-desc.js","webpack://vue-mouse-parallax/./node_modules/core-js/modules/_object-pie.js","webpack://vue-mouse-parallax/./node_modules/core-js/modules/_shared.js","webpack://vue-mouse-parallax/./node_modules/core-js/modules/_export.js","webpack://vue-mouse-parallax/./node_modules/core-js/modules/_inherit-if-required.js","webpack://vue-mouse-parallax/./node_modules/core-js/modules/_shared-key.js","webpack://vue-mouse-parallax/./node_modules/core-js/modules/_iobject.js","webpack://vue-mouse-parallax/./node_modules/core-js/modules/_to-iobject.js","webpack://vue-mouse-parallax/./node_modules/core-js/modules/_has.js","webpack://vue-mouse-parallax/./node_modules/core-js/modules/_to-primitive.js","webpack://vue-mouse-parallax/./node_modules/core-js/modules/_global.js","webpack://vue-mouse-parallax/./node_modules/core-js/modules/_to-absolute-index.js","webpack://vue-mouse-parallax/./node_modules/core-js/modules/_fails.js","webpack://vue-mouse-parallax/./node_modules/core-js/modules/_core.js","webpack://vue-mouse-parallax/./node_modules/core-js/modules/_object-dp.js","webpack://vue-mouse-parallax/./node_modules/core-js/modules/_set-proto.js","webpack://vue-mouse-parallax/./node_modules/core-js/modules/_object-gopn.js","webpack://vue-mouse-parallax/./node_modules/core-js/modules/_ctx.js","webpack://vue-mouse-parallax/./node_modules/core-js/modules/_to-length.js","webpack://vue-mouse-parallax/./node_modules/core-js/modules/_descriptors.js","webpack://vue-mouse-parallax/./node_modules/core-js/modules/_string-trim.js","webpack://vue-mouse-parallax/./node_modules/core-js/modules/_defined.js","webpack://vue-mouse-parallax/./node_modules/core-js/modules/_array-includes.js","webpack://vue-mouse-parallax/./node_modules/core-js/modules/es6.number.constructor.js","webpack://vue-mouse-parallax/./node_modules/core-js/modules/_ie8-dom-define.js","webpack://vue-mouse-parallax/./node_modules/core-js/modules/_uid.js","webpack://vue-mouse-parallax/./node_modules/core-js/modules/_an-object.js","webpack://vue-mouse-parallax/./node_modules/core-js/modules/_object-keys-internal.js","webpack://vue-mouse-parallax/./node_modules/core-js/modules/_is-object.js","webpack://vue-mouse-parallax/./node_modules/core-js/modules/_a-function.js","webpack://vue-mouse-parallax/./node_modules/core-js/modules/_enum-bug-keys.js","webpack://vue-mouse-parallax/./node_modules/current-script-polyfill/currentScript.js","webpack://vue-mouse-parallax/./node_modules/core-js/modules/_function-to-string.js","webpack://vue-mouse-parallax/./node_modules/core-js/modules/_html.js","webpack://vue-mouse-parallax/./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js","webpack://vue-mouse-parallax/./src/components/parallax-container.vue?a779","webpack://vue-mouse-parallax/./src/lib/throttle.js","webpack://vue-mouse-parallax/src/components/parallax-container.vue","webpack://vue-mouse-parallax/./src/components/parallax-container.vue?55b5","webpack://vue-mouse-parallax/./node_modules/vue-loader/lib/runtime/componentNormalizer.js","webpack://vue-mouse-parallax/./src/components/parallax-container.vue","webpack://vue-mouse-parallax/./src/components/parallax-element.vue?d943","webpack://vue-mouse-parallax/src/components/parallax-element.vue","webpack://vue-mouse-parallax/./src/components/parallax-element.vue?f43b","webpack://vue-mouse-parallax/./src/components/parallax-element.vue","webpack://vue-mouse-parallax/./src/components/index.js","webpack://vue-mouse-parallax/./node_modules/@vue/cli-service/lib/commands/build/entry-lib-no-default.js","webpack://vue-mouse-parallax/./node_modules/core-js/modules/_string-ws.js"],"names":["throttle","callback","delay","last","timer","context","newDelay","animationDuration","now","Date","args","arguments","clearTimeout","setTimeout","apply"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;QCVA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;Q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AA;AAFA;AAKA;AACA,sBADA;AAEA;AAAA;AAAA;AAFA;AAKA;AACA,sBADA;AAEA;AAAA;AAAA;AAFA;AAKA;AACA,sBADA;AAEA;AAAA;AAAA;AAFA;AAKA;AACA,sBADA;AAEA;AAAA;AAAA;AAFA;AAKA;AACA,sBADA;AAEA;AAAA;AAAA;AAFA;AAKA;AACA,sBADA;AAEA;AAAA;AAAA;AAFA;AAKA;AAAA;AAAA;AACA,GAzCA;AA0CA,MA1CA,kBA0CA;AACA;AACA;AACA,YADA;AAEA;AAFA,OADA;AAKA,uBALA;AAMA,wBANA;AAOA,2BAPA;AAQA,qBARA;AASA;AATA;AAWA,GAtDA;AAuDA;AACA;AACA,kBADA;AAEA;AAFA,KADA;AAKA;AACA,kBADA;AAEA;AAFA,KALA;AASA;AACA,kBADA;AAEA;AAFA,KATA;AAaA;AACA,kBADA;AAEA;AAFA;AAbA,GAvDA;AAyEA,SAzEA,qBAyEA;AAAA;;AACA;AACA;AACA;;AACA;AACA;AACA;AACA,KALA,EAKA,GALA;AAMA,GAjFA;AAkFA;AACA,uBADA,iCACA;AACA;AACA;AACA,sBADA;AAEA;AAFA;AAIA,KAPA;AAQA;AACA;AACA;AACA;AACA;AACA,KAJA,EAIA,GAJA,CATA;AAeA,iBAfA,2BAeA;AAAA;;AACA;;AACA;AACA;AACA;AACA;AACA;AACA,SAFA,EAEA,IAFA;AAGA;AACA,KAxBA;AA0BA,gBA1BA,0BA0BA;AACA;AACA;AACA;AA7BA;AAlFA,G;;ACf4U,CAAgB,oIAAG,EAAC,C;;ACAhW;;AAEA;AACA;AACA;;AAEe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,yBAAyB;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,qBAAqB;AACrB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;;AC5FiG;AAC3B;AACL;;;AAGjE;AAC0F;AAC1F,gBAAgB,kBAAU;AAC1B,EAAE,qDAAM;AACR,EAAE,MAAM;AACR,EAAE,eAAe;AACjB;AACA;AACA;AACA;;AAEA;;AAEe,wE;;AClBf,IAAI,oDAAM,gBAAgB,aAAa,0BAA0B,wBAAwB,mBAAmB,uCAAuC,2CAA2C;AAC9L,IAAI,6DAAe;;;;;;;;;;;;;ACMnB;AACA,yBADA;AAEA;AACA;AACA,kBADA;AAEA;AAFA,KADA;AAKA;AACA,kBADA;AAEA;AAFA,KALA;AASA;AACA,kBADA;AAEA;AAFA,KATA;AAaA;AACA,mBADA;AAEA;AAFA,KAbA;AAiBA;AACA,mBADA;AAEA;AAFA;AAjBA,GAFA;AAwBA,qBAxBA;AAyBA;AACA,aADA,uBACA;AAAA,0BACA,YADA;AAAA,UACA,UADA,iBACA,UADA;AAAA,UACA,aADA,iBACA,aADA;AAAA,UACA,KADA,iBACA,KADA;AAGA;AAEA;AACA;AACA;AACA;AACA;AAEA;;AACA;AACA;AACA,OAFA,MAEA;AACA;;AACA;AACA;AACA,SAFA,MAEA;AACA;AACA,SAFA,MAEA;AACA;AACA;;AACA;AACA,OAVA,MAUA;AACA;AACA,OA1BA,CA2BA;;;AACA;AAAA;AAAA;AACA,KA9BA;AA+BA,uBA/BA,iCA+BA;AACA;AACA,uCADA;AAEA,mDAFA;AAGA,iCAHA;AAIA;AAJA;AAMA,KAtCA;AAuCA,sBAvCA,gCAuCA;AAAA,2BACA,YADA;AAAA,UACA,iBADA,kBACA,iBADA;AAAA,UACA,QADA,kBACA,QADA;AAEA;AACA;AACA;AACA,KA5CA;AA6CA,4BA7CA,sCA6CA;AACA;AACA;AA/CA;AAzBA,G;;ACP0U,CAAgB,gIAAG,EAAC,C;;ACA/P;AAC3B;AACL;;;AAG/D;AAC0F;AAC1F,IAAI,0BAAS,GAAG,kBAAU;AAC1B,EAAE,mDAAM;AACR,EAAE,oDAAM;AACR,EAAE,6DAAe;AACjB;AACA;AACA;AACA;;AAEA;;AAEe,+EAAS,Q;;AClBxB;;;ACAA;AAAA;AAAwB;AACF;;;;;;;;ACDtB;AACA","file":"vue-mouse-parallax.umd.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"vue-mouse-parallax\"] = factory();\n\telse\n\t\troot[\"vue-mouse-parallax\"] = factory();\n})((typeof self !== 'undefined' ? self : this), function() {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"fae3\");\n","// 19.1.2.14 / 15.2.3.14 Object.keys(O)\nvar $keys = require('./_object-keys-internal');\nvar enumBugKeys = require('./_enum-bug-keys');\n\nmodule.exports = Object.keys || function keys(O) {\n return $keys(O, enumBugKeys);\n};\n","var pIE = require('./_object-pie');\nvar createDesc = require('./_property-desc');\nvar toIObject = require('./_to-iobject');\nvar toPrimitive = require('./_to-primitive');\nvar has = require('./_has');\nvar IE8_DOM_DEFINE = require('./_ie8-dom-define');\nvar gOPD = Object.getOwnPropertyDescriptor;\n\nexports.f = require('./_descriptors') ? gOPD : function getOwnPropertyDescriptor(O, P) {\n O = toIObject(O);\n P = toPrimitive(P, true);\n if (IE8_DOM_DEFINE) try {\n return gOPD(O, P);\n } catch (e) { /* empty */ }\n if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]);\n};\n","var dP = require('./_object-dp');\nvar anObject = require('./_an-object');\nvar getKeys = require('./_object-keys');\n\nmodule.exports = require('./_descriptors') ? Object.defineProperties : function defineProperties(O, Properties) {\n anObject(O);\n var keys = getKeys(Properties);\n var length = keys.length;\n var i = 0;\n var P;\n while (length > i) dP.f(O, P = keys[i++], Properties[P]);\n return O;\n};\n","var isObject = require('./_is-object');\nvar document = require('./_global').document;\n// typeof document.createElement is 'object' in old IE\nvar is = isObject(document) && isObject(document.createElement);\nmodule.exports = function (it) {\n return is ? document.createElement(it) : {};\n};\n","var global = require('./_global');\nvar hide = require('./_hide');\nvar has = require('./_has');\nvar SRC = require('./_uid')('src');\nvar $toString = require('./_function-to-string');\nvar TO_STRING = 'toString';\nvar TPL = ('' + $toString).split(TO_STRING);\n\nrequire('./_core').inspectSource = function (it) {\n return $toString.call(it);\n};\n\n(module.exports = function (O, key, val, safe) {\n var isFunction = typeof val == 'function';\n if (isFunction) has(val, 'name') || hide(val, 'name', key);\n if (O[key] === val) return;\n if (isFunction) has(val, SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key)));\n if (O === global) {\n O[key] = val;\n } else if (!safe) {\n delete O[key];\n hide(O, key, val);\n } else if (O[key]) {\n O[key] = val;\n } else {\n hide(O, key, val);\n }\n// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative\n})(Function.prototype, TO_STRING, function toString() {\n return typeof this == 'function' && this[SRC] || $toString.call(this);\n});\n","// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])\nvar anObject = require('./_an-object');\nvar dPs = require('./_object-dps');\nvar enumBugKeys = require('./_enum-bug-keys');\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\nvar Empty = function () { /* empty */ };\nvar PROTOTYPE = 'prototype';\n\n// Create object with fake `null` prototype: use iframe Object with cleared prototype\nvar createDict = function () {\n // Thrash, waste and sodomy: IE GC bug\n var iframe = require('./_dom-create')('iframe');\n var i = enumBugKeys.length;\n var lt = '<';\n var gt = '>';\n var iframeDocument;\n iframe.style.display = 'none';\n require('./_html').appendChild(iframe);\n iframe.src = 'javascript:'; // eslint-disable-line no-script-url\n // createDict = iframe.contentWindow.Object;\n // html.removeChild(iframe);\n iframeDocument = iframe.contentWindow.document;\n iframeDocument.open();\n iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);\n iframeDocument.close();\n createDict = iframeDocument.F;\n while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];\n return createDict();\n};\n\nmodule.exports = Object.create || function create(O, Properties) {\n var result;\n if (O !== null) {\n Empty[PROTOTYPE] = anObject(O);\n result = new Empty();\n Empty[PROTOTYPE] = null;\n // add \"__proto__\" for Object.getPrototypeOf polyfill\n result[IE_PROTO] = O;\n } else result = createDict();\n return Properties === undefined ? result : dPs(result, Properties);\n};\n","module.exports = false;\n","var toString = {}.toString;\n\nmodule.exports = function (it) {\n return toString.call(it).slice(8, -1);\n};\n","var dP = require('./_object-dp');\nvar createDesc = require('./_property-desc');\nmodule.exports = require('./_descriptors') ? function (object, key, value) {\n return dP.f(object, key, createDesc(1, value));\n} : function (object, key, value) {\n object[key] = value;\n return object;\n};\n","// 7.1.4 ToInteger\nvar ceil = Math.ceil;\nvar floor = Math.floor;\nmodule.exports = function (it) {\n return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);\n};\n","module.exports = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\n","exports.f = {}.propertyIsEnumerable;\n","var core = require('./_core');\nvar global = require('./_global');\nvar SHARED = '__core-js_shared__';\nvar store = global[SHARED] || (global[SHARED] = {});\n\n(module.exports = function (key, value) {\n return store[key] || (store[key] = value !== undefined ? value : {});\n})('versions', []).push({\n version: core.version,\n mode: require('./_library') ? 'pure' : 'global',\n copyright: '© 2019 Denis Pushkarev (zloirock.ru)'\n});\n","var global = require('./_global');\nvar core = require('./_core');\nvar hide = require('./_hide');\nvar redefine = require('./_redefine');\nvar ctx = require('./_ctx');\nvar PROTOTYPE = 'prototype';\n\nvar $export = function (type, name, source) {\n var IS_FORCED = type & $export.F;\n var IS_GLOBAL = type & $export.G;\n var IS_STATIC = type & $export.S;\n var IS_PROTO = type & $export.P;\n var IS_BIND = type & $export.B;\n var target = IS_GLOBAL ? global : IS_STATIC ? global[name] || (global[name] = {}) : (global[name] || {})[PROTOTYPE];\n var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});\n var expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {});\n var key, own, out, exp;\n if (IS_GLOBAL) source = name;\n for (key in source) {\n // contains in native\n own = !IS_FORCED && target && target[key] !== undefined;\n // export native or passed\n out = (own ? target : source)[key];\n // bind timers to global for call from export context\n exp = IS_BIND && own ? ctx(out, global) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;\n // extend global\n if (target) redefine(target, key, out, type & $export.U);\n // export\n if (exports[key] != out) hide(exports, key, exp);\n if (IS_PROTO && expProto[key] != out) expProto[key] = out;\n }\n};\nglobal.core = core;\n// type bitmap\n$export.F = 1; // forced\n$export.G = 2; // global\n$export.S = 4; // static\n$export.P = 8; // proto\n$export.B = 16; // bind\n$export.W = 32; // wrap\n$export.U = 64; // safe\n$export.R = 128; // real proto method for `library`\nmodule.exports = $export;\n","var isObject = require('./_is-object');\nvar setPrototypeOf = require('./_set-proto').set;\nmodule.exports = function (that, target, C) {\n var S = target.constructor;\n var P;\n if (S !== C && typeof S == 'function' && (P = S.prototype) !== C.prototype && isObject(P) && setPrototypeOf) {\n setPrototypeOf(that, P);\n } return that;\n};\n","var shared = require('./_shared')('keys');\nvar uid = require('./_uid');\nmodule.exports = function (key) {\n return shared[key] || (shared[key] = uid(key));\n};\n","// fallback for non-array-like ES3 and non-enumerable old V8 strings\nvar cof = require('./_cof');\n// eslint-disable-next-line no-prototype-builtins\nmodule.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {\n return cof(it) == 'String' ? it.split('') : Object(it);\n};\n","// to indexed object, toObject with fallback for non-array-like ES3 strings\nvar IObject = require('./_iobject');\nvar defined = require('./_defined');\nmodule.exports = function (it) {\n return IObject(defined(it));\n};\n","var hasOwnProperty = {}.hasOwnProperty;\nmodule.exports = function (it, key) {\n return hasOwnProperty.call(it, key);\n};\n","// 7.1.1 ToPrimitive(input [, PreferredType])\nvar isObject = require('./_is-object');\n// instead of the ES6 spec version, we didn't implement @@toPrimitive case\n// and the second argument - flag - preferred type is a string\nmodule.exports = function (it, S) {\n if (!isObject(it)) return it;\n var fn, val;\n if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;\n if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;\n if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;\n throw TypeError(\"Can't convert object to primitive value\");\n};\n","// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nvar global = module.exports = typeof window != 'undefined' && window.Math == Math\n ? window : typeof self != 'undefined' && self.Math == Math ? self\n // eslint-disable-next-line no-new-func\n : Function('return this')();\nif (typeof __g == 'number') __g = global; // eslint-disable-line no-undef\n","var toInteger = require('./_to-integer');\nvar max = Math.max;\nvar min = Math.min;\nmodule.exports = function (index, length) {\n index = toInteger(index);\n return index < 0 ? max(index + length, 0) : min(index, length);\n};\n","module.exports = function (exec) {\n try {\n return !!exec();\n } catch (e) {\n return true;\n }\n};\n","var core = module.exports = { version: '2.6.9' };\nif (typeof __e == 'number') __e = core; // eslint-disable-line no-undef\n","var anObject = require('./_an-object');\nvar IE8_DOM_DEFINE = require('./_ie8-dom-define');\nvar toPrimitive = require('./_to-primitive');\nvar dP = Object.defineProperty;\n\nexports.f = require('./_descriptors') ? Object.defineProperty : function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPrimitive(P, true);\n anObject(Attributes);\n if (IE8_DOM_DEFINE) try {\n return dP(O, P, Attributes);\n } catch (e) { /* empty */ }\n if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\n","// Works with __proto__ only. Old v8 can't work with null proto objects.\n/* eslint-disable no-proto */\nvar isObject = require('./_is-object');\nvar anObject = require('./_an-object');\nvar check = function (O, proto) {\n anObject(O);\n if (!isObject(proto) && proto !== null) throw TypeError(proto + \": can't set as prototype!\");\n};\nmodule.exports = {\n set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line\n function (test, buggy, set) {\n try {\n set = require('./_ctx')(Function.call, require('./_object-gopd').f(Object.prototype, '__proto__').set, 2);\n set(test, []);\n buggy = !(test instanceof Array);\n } catch (e) { buggy = true; }\n return function setPrototypeOf(O, proto) {\n check(O, proto);\n if (buggy) O.__proto__ = proto;\n else set(O, proto);\n return O;\n };\n }({}, false) : undefined),\n check: check\n};\n","// 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)\nvar $keys = require('./_object-keys-internal');\nvar hiddenKeys = require('./_enum-bug-keys').concat('length', 'prototype');\n\nexports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {\n return $keys(O, hiddenKeys);\n};\n","// optional / simple context binding\nvar aFunction = require('./_a-function');\nmodule.exports = function (fn, that, length) {\n aFunction(fn);\n if (that === undefined) return fn;\n switch (length) {\n case 1: return function (a) {\n return fn.call(that, a);\n };\n case 2: return function (a, b) {\n return fn.call(that, a, b);\n };\n case 3: return function (a, b, c) {\n return fn.call(that, a, b, c);\n };\n }\n return function (/* ...args */) {\n return fn.apply(that, arguments);\n };\n};\n","// 7.1.15 ToLength\nvar toInteger = require('./_to-integer');\nvar min = Math.min;\nmodule.exports = function (it) {\n return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991\n};\n","// Thank's IE8 for his funny defineProperty\nmodule.exports = !require('./_fails')(function () {\n return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;\n});\n","var $export = require('./_export');\nvar defined = require('./_defined');\nvar fails = require('./_fails');\nvar spaces = require('./_string-ws');\nvar space = '[' + spaces + ']';\nvar non = '\\u200b\\u0085';\nvar ltrim = RegExp('^' + space + space + '*');\nvar rtrim = RegExp(space + space + '*$');\n\nvar exporter = function (KEY, exec, ALIAS) {\n var exp = {};\n var FORCE = fails(function () {\n return !!spaces[KEY]() || non[KEY]() != non;\n });\n var fn = exp[KEY] = FORCE ? exec(trim) : spaces[KEY];\n if (ALIAS) exp[ALIAS] = fn;\n $export($export.P + $export.F * FORCE, 'String', exp);\n};\n\n// 1 -> String#trimLeft\n// 2 -> String#trimRight\n// 3 -> String#trim\nvar trim = exporter.trim = function (string, TYPE) {\n string = String(defined(string));\n if (TYPE & 1) string = string.replace(ltrim, '');\n if (TYPE & 2) string = string.replace(rtrim, '');\n return string;\n};\n\nmodule.exports = exporter;\n","// 7.2.1 RequireObjectCoercible(argument)\nmodule.exports = function (it) {\n if (it == undefined) throw TypeError(\"Can't call method on \" + it);\n return it;\n};\n","// false -> Array#indexOf\n// true -> Array#includes\nvar toIObject = require('./_to-iobject');\nvar toLength = require('./_to-length');\nvar toAbsoluteIndex = require('./_to-absolute-index');\nmodule.exports = function (IS_INCLUDES) {\n return function ($this, el, fromIndex) {\n var O = toIObject($this);\n var length = toLength(O.length);\n var index = toAbsoluteIndex(fromIndex, length);\n var value;\n // Array#includes uses SameValueZero equality algorithm\n // eslint-disable-next-line no-self-compare\n if (IS_INCLUDES && el != el) while (length > index) {\n value = O[index++];\n // eslint-disable-next-line no-self-compare\n if (value != value) return true;\n // Array#indexOf ignores holes, Array#includes - not\n } else for (;length > index; index++) if (IS_INCLUDES || index in O) {\n if (O[index] === el) return IS_INCLUDES || index || 0;\n } return !IS_INCLUDES && -1;\n };\n};\n","'use strict';\nvar global = require('./_global');\nvar has = require('./_has');\nvar cof = require('./_cof');\nvar inheritIfRequired = require('./_inherit-if-required');\nvar toPrimitive = require('./_to-primitive');\nvar fails = require('./_fails');\nvar gOPN = require('./_object-gopn').f;\nvar gOPD = require('./_object-gopd').f;\nvar dP = require('./_object-dp').f;\nvar $trim = require('./_string-trim').trim;\nvar NUMBER = 'Number';\nvar $Number = global[NUMBER];\nvar Base = $Number;\nvar proto = $Number.prototype;\n// Opera ~12 has broken Object#toString\nvar BROKEN_COF = cof(require('./_object-create')(proto)) == NUMBER;\nvar TRIM = 'trim' in String.prototype;\n\n// 7.1.3 ToNumber(argument)\nvar toNumber = function (argument) {\n var it = toPrimitive(argument, false);\n if (typeof it == 'string' && it.length > 2) {\n it = TRIM ? it.trim() : $trim(it, 3);\n var first = it.charCodeAt(0);\n var third, radix, maxCode;\n if (first === 43 || first === 45) {\n third = it.charCodeAt(2);\n if (third === 88 || third === 120) return NaN; // Number('+0x1') should be NaN, old V8 fix\n } else if (first === 48) {\n switch (it.charCodeAt(1)) {\n case 66: case 98: radix = 2; maxCode = 49; break; // fast equal /^0b[01]+$/i\n case 79: case 111: radix = 8; maxCode = 55; break; // fast equal /^0o[0-7]+$/i\n default: return +it;\n }\n for (var digits = it.slice(2), i = 0, l = digits.length, code; i < l; i++) {\n code = digits.charCodeAt(i);\n // parseInt parses a string to a first unavailable symbol\n // but ToNumber should return NaN if a string contains unavailable symbols\n if (code < 48 || code > maxCode) return NaN;\n } return parseInt(digits, radix);\n }\n } return +it;\n};\n\nif (!$Number(' 0o1') || !$Number('0b1') || $Number('+0x1')) {\n $Number = function Number(value) {\n var it = arguments.length < 1 ? 0 : value;\n var that = this;\n return that instanceof $Number\n // check on 1..constructor(foo) case\n && (BROKEN_COF ? fails(function () { proto.valueOf.call(that); }) : cof(that) != NUMBER)\n ? inheritIfRequired(new Base(toNumber(it)), that, $Number) : toNumber(it);\n };\n for (var keys = require('./_descriptors') ? gOPN(Base) : (\n // ES3:\n 'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' +\n // ES6 (in case, if modules with ES6 Number statics required before):\n 'EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,' +\n 'MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger'\n ).split(','), j = 0, key; keys.length > j; j++) {\n if (has(Base, key = keys[j]) && !has($Number, key)) {\n dP($Number, key, gOPD(Base, key));\n }\n }\n $Number.prototype = proto;\n proto.constructor = $Number;\n require('./_redefine')(global, NUMBER, $Number);\n}\n","module.exports = !require('./_descriptors') && !require('./_fails')(function () {\n return Object.defineProperty(require('./_dom-create')('div'), 'a', { get: function () { return 7; } }).a != 7;\n});\n","var id = 0;\nvar px = Math.random();\nmodule.exports = function (key) {\n return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));\n};\n","var isObject = require('./_is-object');\nmodule.exports = function (it) {\n if (!isObject(it)) throw TypeError(it + ' is not an object!');\n return it;\n};\n","var has = require('./_has');\nvar toIObject = require('./_to-iobject');\nvar arrayIndexOf = require('./_array-includes')(false);\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\n\nmodule.exports = function (object, names) {\n var O = toIObject(object);\n var i = 0;\n var result = [];\n var key;\n for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key);\n // Don't enum bug & hidden keys\n while (names.length > i) if (has(O, key = names[i++])) {\n ~arrayIndexOf(result, key) || result.push(key);\n }\n return result;\n};\n","module.exports = function (it) {\n return typeof it === 'object' ? it !== null : typeof it === 'function';\n};\n","module.exports = function (it) {\n if (typeof it != 'function') throw TypeError(it + ' is not a function!');\n return it;\n};\n","// IE 8- don't enum bug keys\nmodule.exports = (\n 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'\n).split(',');\n","// document.currentScript polyfill by Adam Miller\n\n// MIT license\n\n(function(document){\n var currentScript = \"currentScript\",\n scripts = document.getElementsByTagName('script'); // Live NodeList collection\n\n // If browser needs currentScript polyfill, add get currentScript() to the document object\n if (!(currentScript in document)) {\n Object.defineProperty(document, currentScript, {\n get: function(){\n\n // IE 6-10 supports script readyState\n // IE 10+ support stack trace\n try { throw new Error(); }\n catch (err) {\n\n // Find the second match for the \"at\" string to get file src url from stack.\n // Specifically works with the format of stack traces in IE.\n var i, res = ((/.*at [^\\(]*\\((.*):.+:.+\\)$/ig).exec(err.stack) || [false])[1];\n\n // For all scripts on the page, if src matches or if ready state is interactive, return the script tag\n for(i in scripts){\n if(scripts[i].src == res || scripts[i].readyState == \"interactive\"){\n return scripts[i];\n }\n }\n\n // If no match, return null\n return null;\n }\n }\n });\n }\n})(document);\n","module.exports = require('./_shared')('native-function-to-string', Function.toString);\n","var document = require('./_global').document;\nmodule.exports = document && document.documentElement;\n","// This file is imported into lib/wc client bundles.\n\nif (typeof window !== 'undefined') {\n if (process.env.NEED_CURRENTSCRIPT_POLYFILL) {\n require('current-script-polyfill')\n }\n\n var i\n if ((i = window.document.currentScript) && (i = i.src.match(/(.+\\/)[^/]+\\.js(\\?.*)?$/))) {\n __webpack_public_path__ = i[1] // eslint-disable-line\n }\n}\n\n// Indicate to webpack that this file can be concatenated\nexport default null\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c(_vm.tag,{tag:\"component\",style:({perspective: (_vm.perspective + \"px\")}),on:{\"mousemove\":_vm.getMousePosition,\"mouseleave\":_vm.parallaxStop,\"mouseenter\":_vm.parallaxStart}},[_vm._t(\"default\")],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","export default function throttle(callback, delay) {\n let last;\n let timer;\n // eslint-disable-next-line func-names\n return function () {\n const context = this;\n const newDelay = this.animationDuration > 1000 ? delay : this.animationDuration / 10;\n const now = +new Date();\n // eslint-disable-next-line prefer-rest-params\n const args = arguments;\n if (last && now < last + newDelay) {\n clearTimeout(timer);\n timer = setTimeout(() => {\n last = now;\n callback.apply(context, args);\n }, newDelay);\n } else {\n last = now;\n callback.apply(context, args);\n }\n };\n}\n","\n \n \n \n\n\n\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./parallax-container.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./parallax-container.vue?vue&type=script&lang=js&\"","/* globals __VUE_SSR_CONTEXT__ */\n\n// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).\n// This module is a runtime utility for cleaner component module output and will\n// be included in the final webpack user bundle.\n\nexport default function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode /* vue-cli only */\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}\n","import { render, staticRenderFns } from \"./parallax-container.vue?vue&type=template&id=5ff65e2c&\"\nimport script from \"./parallax-container.vue?vue&type=script&lang=js&\"\nexport * from \"./parallax-container.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c(_vm.tag,{tag:\"component\",style:(Object.assign({}, _vm.transform, _vm.transformParameters))},[_vm._t(\"default\")],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n \n \n \n\n\n\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./parallax-element.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./parallax-element.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./parallax-element.vue?vue&type=template&id=2f75f72a&\"\nimport script from \"./parallax-element.vue?vue&type=script&lang=js&\"\nexport * from \"./parallax-element.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","export { default as ParallaxContainer } from './parallax-container.vue';\nexport { default as ParallaxElement } from './parallax-element.vue';\n","import './setPublicPath'\nexport * from '~entry'\n","module.exports = '\\x09\\x0A\\x0B\\x0C\\x0D\\x20\\xA0\\u1680\\u180E\\u2000\\u2001\\u2002\\u2003' +\n '\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000\\u2028\\u2029\\uFEFF';\n"],"sourceRoot":""}
--------------------------------------------------------------------------------
/dist/vue-mouse-parallax.umd.min.js:
--------------------------------------------------------------------------------
1 | (function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e():"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["vue-mouse-parallax"]=e():t["vue-mouse-parallax"]=e()})("undefined"!==typeof self?self:this,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="fae3")}({"0d58":function(t,e,n){var r=n("ce10"),o=n("e11e");t.exports=Object.keys||function(t){return r(t,o)}},"11e9":function(t,e,n){var r=n("52a7"),o=n("4630"),i=n("6821"),a=n("6a99"),u=n("69a8"),c=n("c69a"),f=Object.getOwnPropertyDescriptor;e.f=n("9e1e")?f:function(t,e){if(t=i(t),e=a(e,!0),c)try{return f(t,e)}catch(n){}if(u(t,e))return o(!r.f.call(t,e),t[e])}},1495:function(t,e,n){var r=n("86cc"),o=n("cb7c"),i=n("0d58");t.exports=n("9e1e")?Object.defineProperties:function(t,e){o(t);var n,a=i(e),u=a.length,c=0;while(u>c)r.f(t,n=a[c++],e[n]);return t}},"230e":function(t,e,n){var r=n("d3f4"),o=n("7726").document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},"2aba":function(t,e,n){var r=n("7726"),o=n("32e9"),i=n("69a8"),a=n("ca5a")("src"),u=n("fa5b"),c="toString",f=(""+u).split(c);n("8378").inspectSource=function(t){return u.call(t)},(t.exports=function(t,e,n,u){var c="function"==typeof n;c&&(i(n,"name")||o(n,"name",e)),t[e]!==n&&(c&&(i(n,a)||o(n,a,t[e]?""+t[e]:f.join(String(e)))),t===r?t[e]=n:u?t[e]?t[e]=n:o(t,e,n):(delete t[e],o(t,e,n)))})(Function.prototype,c,(function(){return"function"==typeof this&&this[a]||u.call(this)}))},"2aeb":function(t,e,n){var r=n("cb7c"),o=n("1495"),i=n("e11e"),a=n("613b")("IE_PROTO"),u=function(){},c="prototype",f=function(){var t,e=n("230e")("iframe"),r=i.length,o="<",a=">";e.style.display="none",n("fab2").appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(o+"script"+a+"document.F=Object"+o+"/script"+a),t.close(),f=t.F;while(r--)delete f[c][i[r]];return f()};t.exports=Object.create||function(t,e){var n;return null!==t?(u[c]=r(t),n=new u,u[c]=null,n[a]=t):n=f(),void 0===e?n:o(n,e)}},"2d00":function(t,e){t.exports=!1},"2d95":function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},"32e9":function(t,e,n){var r=n("86cc"),o=n("4630");t.exports=n("9e1e")?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},4588:function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},4630:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"52a7":function(t,e){e.f={}.propertyIsEnumerable},5537:function(t,e,n){var r=n("8378"),o=n("7726"),i="__core-js_shared__",a=o[i]||(o[i]={});(t.exports=function(t,e){return a[t]||(a[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n("2d00")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},"5ca1":function(t,e,n){var r=n("7726"),o=n("8378"),i=n("32e9"),a=n("2aba"),u=n("9b43"),c="prototype",f=function(t,e,n){var s,p,l,d,v=t&f.F,h=t&f.G,m=t&f.S,y=t&f.P,b=t&f.B,g=h?r:m?r[e]||(r[e]={}):(r[e]||{})[c],x=h?o:o[e]||(o[e]={}),_=x[c]||(x[c]={});for(s in h&&(n=e),n)p=!v&&g&&void 0!==g[s],l=(p?g:n)[s],d=b&&p?u(l,r):y&&"function"==typeof l?u(Function.call,l):l,g&&a(g,s,l,t&f.U),x[s]!=l&&i(x,s,d),y&&_[s]!=l&&(_[s]=l)};r.core=o,f.F=1,f.G=2,f.S=4,f.P=8,f.B=16,f.W=32,f.U=64,f.R=128,t.exports=f},"5dbc":function(t,e,n){var r=n("d3f4"),o=n("8b97").set;t.exports=function(t,e,n){var i,a=e.constructor;return a!==n&&"function"==typeof a&&(i=a.prototype)!==n.prototype&&r(i)&&o&&o(t,i),t}},"613b":function(t,e,n){var r=n("5537")("keys"),o=n("ca5a");t.exports=function(t){return r[t]||(r[t]=o(t))}},"626a":function(t,e,n){var r=n("2d95");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},6821:function(t,e,n){var r=n("626a"),o=n("be13");t.exports=function(t){return r(o(t))}},"69a8":function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},"6a99":function(t,e,n){var r=n("d3f4");t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},7726:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"77f1":function(t,e,n){var r=n("4588"),o=Math.max,i=Math.min;t.exports=function(t,e){return t=r(t),t<0?o(t+e,0):i(t,e)}},"79e5":function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},8378:function(t,e){var n=t.exports={version:"2.6.9"};"number"==typeof __e&&(__e=n)},"86cc":function(t,e,n){var r=n("cb7c"),o=n("c69a"),i=n("6a99"),a=Object.defineProperty;e.f=n("9e1e")?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return a(t,e,n)}catch(u){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},"8b97":function(t,e,n){var r=n("d3f4"),o=n("cb7c"),i=function(t,e){if(o(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{r=n("9b43")(Function.call,n("11e9").f(Object.prototype,"__proto__").set,2),r(t,[]),e=!(t instanceof Array)}catch(o){e=!0}return function(t,n){return i(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:i}},9093:function(t,e,n){var r=n("ce10"),o=n("e11e").concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},"9b43":function(t,e,n){var r=n("d8e8");t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},"9def":function(t,e,n){var r=n("4588"),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},"9e1e":function(t,e,n){t.exports=!n("79e5")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},aa77:function(t,e,n){var r=n("5ca1"),o=n("be13"),i=n("79e5"),a=n("fdef"),u="["+a+"]",c="
",f=RegExp("^"+u+u+"*"),s=RegExp(u+u+"*$"),p=function(t,e,n){var o={},u=i((function(){return!!a[t]()||c[t]()!=c})),f=o[t]=u?e(l):a[t];n&&(o[n]=f),r(r.P+r.F*u,"String",o)},l=p.trim=function(t,e){return t=String(o(t)),1&e&&(t=t.replace(f,"")),2&e&&(t=t.replace(s,"")),t};t.exports=p},be13:function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},c366:function(t,e,n){var r=n("6821"),o=n("9def"),i=n("77f1");t.exports=function(t){return function(e,n,a){var u,c=r(e),f=o(c.length),s=i(a,f);if(t&&n!=n){while(f>s)if(u=c[s++],u!=u)return!0}else for(;f>s;s++)if((t||s in c)&&c[s]===n)return t||s||0;return!t&&-1}}},c5f6:function(t,e,n){"use strict";var r=n("7726"),o=n("69a8"),i=n("2d95"),a=n("5dbc"),u=n("6a99"),c=n("79e5"),f=n("9093").f,s=n("11e9").f,p=n("86cc").f,l=n("aa77").trim,d="Number",v=r[d],h=v,m=v.prototype,y=i(n("2aeb")(m))==d,b="trim"in String.prototype,g=function(t){var e=u(t,!1);if("string"==typeof e&&e.length>2){e=b?e.trim():l(e,3);var n,r,o,i=e.charCodeAt(0);if(43===i||45===i){if(n=e.charCodeAt(2),88===n||120===n)return NaN}else if(48===i){switch(e.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+e}for(var a,c=e.slice(2),f=0,s=c.length;fo)return NaN;return parseInt(c,r)}}return+e};if(!v(" 0o1")||!v("0b1")||v("+0x1")){v=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof v&&(y?c((function(){m.valueOf.call(n)})):i(n)!=d)?a(new h(g(e)),n,v):g(e)};for(var x,_=n("9e1e")?f(h):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),O=0;_.length>O;O++)o(h,x=_[O])&&!o(v,x)&&p(v,x,s(h,x));v.prototype=m,m.constructor=v,n("2aba")(r,d,v)}},c69a:function(t,e,n){t.exports=!n("9e1e")&&!n("79e5")((function(){return 7!=Object.defineProperty(n("230e")("div"),"a",{get:function(){return 7}}).a}))},ca5a:function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},cb7c:function(t,e,n){var r=n("d3f4");t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},ce10:function(t,e,n){var r=n("69a8"),o=n("6821"),i=n("c366")(!1),a=n("613b")("IE_PROTO");t.exports=function(t,e){var n,u=o(t),c=0,f=[];for(n in u)n!=a&&r(u,n)&&f.push(n);while(e.length>c)r(u,n=e[c++])&&(~i(f,n)||f.push(n));return f}},d3f4:function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},d8e8:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},e11e:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},f6fd:function(t,e){(function(t){var e="currentScript",n=t.getElementsByTagName("script");e in t||Object.defineProperty(t,e,{get:function(){try{throw new Error}catch(r){var t,e=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(r.stack)||[!1])[1];for(t in n)if(n[t].src==e||"interactive"==n[t].readyState)return n[t];return null}}})})(document)},fa5b:function(t,e,n){t.exports=n("5537")("native-function-to-string",Function.toString)},fab2:function(t,e,n){var r=n("7726").document;t.exports=r&&r.documentElement},fae3:function(t,e,n){"use strict";var r;(n.r(e),"undefined"!==typeof window)&&(n("f6fd"),(r=window.document.currentScript)&&(r=r.src.match(/(.+\/)[^\/]+\.js(\?.*)?$/))&&(n.p=r[1]));var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(t.tag,{tag:"component",style:{perspective:t.perspective+"px"},on:{mousemove:t.getMousePosition,mouseleave:t.parallaxStop,mouseenter:t.parallaxStart}},[t._t("default")],2)},i=[];n("c5f6");function a(t,e){var n,r;return function(){var o=this,i=this.animationDuration>1e3?e:this.animationDuration/10,a=+new Date,u=arguments;n&&a400?e:400,o=n?e:r;return"".concat(o,"ms")},transitionTimingFunction:function(){return this.context.easing}}},h=v,m=f(h,l,d,!1,null,null,null),y=m.exports;n.d(e,"ParallaxContainer",(function(){return p})),n.d(e,"ParallaxElement",(function(){return y}))},fdef:function(t,e){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"}})}));
2 | //# sourceMappingURL=vue-mouse-parallax.umd.min.js.map
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "vue-mouse-parallax",
3 | "version": "1.2.2",
4 | "licence": "MIT",
5 | "author": {
6 | "name": "Amine Bouyarmane",
7 | "email": "amine.bouyarmane@gmail.com"
8 | },
9 | "scripts": {
10 | "serve": "vue-cli-service serve",
11 | "build": "vue-cli-service build",
12 | "build-bundle": "vue-cli-service build --target lib --name vue-mouse-parallax ./src/components/index.js",
13 | "lint": "vue-cli-service lint"
14 | },
15 | "main": "./dist/vue-mouse-parallax.common.js",
16 | "files": [
17 | "dist/*",
18 | "src/*",
19 | "*.json",
20 | "*.js"
21 | ],
22 | "dependencies": {
23 | "core-js": "^2.6.5",
24 | "vue": "^2.6.10"
25 | },
26 | "devDependencies": {
27 | "@vue/cli-plugin-babel": "^3.11.0",
28 | "@vue/cli-plugin-eslint": "^3.11.0",
29 | "@vue/cli-service": "^3.11.0",
30 | "@vue/eslint-config-airbnb": "^4.0.0",
31 | "babel-eslint": "^10.0.1",
32 | "eslint": "^5.16.0",
33 | "eslint-plugin-vue": "^5.0.0",
34 | "lint-staged": "^8.1.5",
35 | "sass": "^1.18.0",
36 | "sass-loader": "^7.1.0",
37 | "vue-template-compiler": "^2.6.10"
38 | },
39 | "eslintConfig": {
40 | "root": true,
41 | "env": {
42 | "node": true
43 | },
44 | "extends": [
45 | "plugin:vue/essential",
46 | "@vue/airbnb"
47 | ],
48 | "rules": {},
49 | "parserOptions": {
50 | "parser": "babel-eslint"
51 | }
52 | },
53 | "postcss": {
54 | "plugins": {
55 | "autoprefixer": {}
56 | }
57 | },
58 | "browserslist": [
59 | "> 1%",
60 | "last 2 versions"
61 | ],
62 | "gitHooks": {
63 | "pre-commit": "lint-staged"
64 | },
65 | "lint-staged": {
66 | "*.{js,vue}": [
67 | "vue-cli-service lint",
68 | "git add"
69 | ]
70 | },
71 | "keywords": [
72 | "frontend",
73 | "vue.js",
74 | "vuejs",
75 | "vue2",
76 | "parallax",
77 | "mouse",
78 | "hover",
79 | "component"
80 | ]
81 | }
82 |
--------------------------------------------------------------------------------
/src/components/index.js:
--------------------------------------------------------------------------------
1 | export { default as ParallaxContainer } from './parallax-container.vue';
2 | export { default as ParallaxElement } from './parallax-element.vue';
3 |
--------------------------------------------------------------------------------
/src/components/parallax-container.vue:
--------------------------------------------------------------------------------
1 |
2 |
9 |
10 |
11 |
12 |
13 |
131 |
--------------------------------------------------------------------------------
/src/components/parallax-element.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
84 |
--------------------------------------------------------------------------------
/src/lib/throttle.js:
--------------------------------------------------------------------------------
1 | export default function throttle(callback, delay) {
2 | let last;
3 | let timer;
4 | // eslint-disable-next-line func-names
5 | return function () {
6 | const context = this;
7 | const newDelay = this.animationDuration > 1000 ? delay : this.animationDuration / 10;
8 | const now = +new Date();
9 | // eslint-disable-next-line prefer-rest-params
10 | const args = arguments;
11 | if (last && now < last + newDelay) {
12 | clearTimeout(timer);
13 | timer = setTimeout(() => {
14 | last = now;
15 | callback.apply(context, args);
16 | }, newDelay);
17 | } else {
18 | last = now;
19 | callback.apply(context, args);
20 | }
21 | };
22 | }
23 |
--------------------------------------------------------------------------------
/vue.config.js:
--------------------------------------------------------------------------------
1 | const path = require('path');
2 |
3 | const vueSrc = './src';
4 |
5 | module.exports = {
6 | publicPath: '.',
7 | configureWebpack: {
8 | resolve: {
9 | alias: {
10 | '@': path.join(__dirname, vueSrc),
11 | },
12 | },
13 | },
14 | };
15 |
--------------------------------------------------------------------------------