Skip to content

Commit 124049b

Browse files
committed
Merge branch 'hotfix/edge_lagging' into develop
* hotfix/edge_lagging: ✨ Add will-change attribute to prevent laggy scrolling ✨ Add babel env ✨ Add vue version badge
2 parents 34b4165 + 6c10714 commit 124049b

File tree

5 files changed

+79
-22
lines changed

5 files changed

+79
-22
lines changed

.babelrc

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
{
2-
"presets": ["es2015", "stage-2"],
2+
"presets": [
3+
"es2015",
4+
"stage-2",
5+
["env", { "modules": false }]
6+
],
37
"plugins": ["transform-runtime"],
48
"comments": false
59
}

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# vue-parallaxy
22
[![npm version](https://badge.fury.io/js/vue-parallaxy.svg)](https://badge.fury.io/js/vue-parallaxy)
3+
[![vue2](https://img.shields.io/badge/vue-2.x-brightgreen.svg)](https://vuejs.org/)
34
[![license](https://img.shields.io/github/license/mashape/apistatus.svg)](https://github.com/apertureless/vue-parallax/blob/master/LICENSE.txt)
45

56
Is a compontent for fast 60fps parallax scroll effects in vue 2.

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
"babel-eslint": "^7.2.2",
4141
"babel-loader": "^6.4.1",
4242
"babel-plugin-transform-runtime": "^6.23.0",
43+
"babel-preset-env": "^1.5.2",
4344
"babel-preset-es2015": "^6.24.1",
4445
"babel-preset-stage-2": "^6.24.1",
4546
"babel-register": "^6.24.1",

src/components/Parallax.vue

+1
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@
174174
175175
&.is-fixed {
176176
position: fixed;
177+
will-change: transform;
177178
178179
> img {
179180
height: 100vh;

yarn.lock

+71-21
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ babel-plugin-transform-async-generator-functions@^6.24.1:
461461
babel-plugin-syntax-async-generators "^6.5.0"
462462
babel-runtime "^6.22.0"
463463

464-
babel-plugin-transform-async-to-generator@^6.24.1:
464+
babel-plugin-transform-async-to-generator@^6.22.0, babel-plugin-transform-async-to-generator@^6.24.1:
465465
version "6.24.1"
466466
resolved "https://registry.yarnpkg.com/babel-plugin-transform-async-to-generator/-/babel-plugin-transform-async-to-generator-6.24.1.tgz#6536e378aff6cb1d5517ac0e40eb3e9fc8d08761"
467467
dependencies:
@@ -500,7 +500,7 @@ babel-plugin-transform-es2015-block-scoped-functions@^6.22.0:
500500
dependencies:
501501
babel-runtime "^6.22.0"
502502

503-
babel-plugin-transform-es2015-block-scoping@^6.24.1:
503+
babel-plugin-transform-es2015-block-scoping@^6.23.0, babel-plugin-transform-es2015-block-scoping@^6.24.1:
504504
version "6.24.1"
505505
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-block-scoping/-/babel-plugin-transform-es2015-block-scoping-6.24.1.tgz#76c295dc3a4741b1665adfd3167215dcff32a576"
506506
dependencies:
@@ -510,7 +510,7 @@ babel-plugin-transform-es2015-block-scoping@^6.24.1:
510510
babel-types "^6.24.1"
511511
lodash "^4.2.0"
512512

513-
babel-plugin-transform-es2015-classes@^6.24.1:
513+
babel-plugin-transform-es2015-classes@^6.23.0, babel-plugin-transform-es2015-classes@^6.24.1:
514514
version "6.24.1"
515515
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-classes/-/babel-plugin-transform-es2015-classes-6.24.1.tgz#5a4c58a50c9c9461e564b4b2a3bfabc97a2584db"
516516
dependencies:
@@ -524,33 +524,33 @@ babel-plugin-transform-es2015-classes@^6.24.1:
524524
babel-traverse "^6.24.1"
525525
babel-types "^6.24.1"
526526

527-
babel-plugin-transform-es2015-computed-properties@^6.24.1:
527+
babel-plugin-transform-es2015-computed-properties@^6.22.0, babel-plugin-transform-es2015-computed-properties@^6.24.1:
528528
version "6.24.1"
529529
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-computed-properties/-/babel-plugin-transform-es2015-computed-properties-6.24.1.tgz#6fe2a8d16895d5634f4cd999b6d3480a308159b3"
530530
dependencies:
531531
babel-runtime "^6.22.0"
532532
babel-template "^6.24.1"
533533

534-
babel-plugin-transform-es2015-destructuring@^6.22.0:
534+
babel-plugin-transform-es2015-destructuring@^6.22.0, babel-plugin-transform-es2015-destructuring@^6.23.0:
535535
version "6.23.0"
536536
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-destructuring/-/babel-plugin-transform-es2015-destructuring-6.23.0.tgz#997bb1f1ab967f682d2b0876fe358d60e765c56d"
537537
dependencies:
538538
babel-runtime "^6.22.0"
539539

540-
babel-plugin-transform-es2015-duplicate-keys@^6.24.1:
540+
babel-plugin-transform-es2015-duplicate-keys@^6.22.0, babel-plugin-transform-es2015-duplicate-keys@^6.24.1:
541541
version "6.24.1"
542542
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-duplicate-keys/-/babel-plugin-transform-es2015-duplicate-keys-6.24.1.tgz#73eb3d310ca969e3ef9ec91c53741a6f1576423e"
543543
dependencies:
544544
babel-runtime "^6.22.0"
545545
babel-types "^6.24.1"
546546

547-
babel-plugin-transform-es2015-for-of@^6.22.0:
547+
babel-plugin-transform-es2015-for-of@^6.22.0, babel-plugin-transform-es2015-for-of@^6.23.0:
548548
version "6.23.0"
549549
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-for-of/-/babel-plugin-transform-es2015-for-of-6.23.0.tgz#f47c95b2b613df1d3ecc2fdb7573623c75248691"
550550
dependencies:
551551
babel-runtime "^6.22.0"
552552

553-
babel-plugin-transform-es2015-function-name@^6.24.1:
553+
babel-plugin-transform-es2015-function-name@^6.22.0, babel-plugin-transform-es2015-function-name@^6.24.1:
554554
version "6.24.1"
555555
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-function-name/-/babel-plugin-transform-es2015-function-name-6.24.1.tgz#834c89853bc36b1af0f3a4c5dbaa94fd8eacaa8b"
556556
dependencies:
@@ -564,15 +564,15 @@ babel-plugin-transform-es2015-literals@^6.22.0:
564564
dependencies:
565565
babel-runtime "^6.22.0"
566566

567-
babel-plugin-transform-es2015-modules-amd@^6.24.1:
567+
babel-plugin-transform-es2015-modules-amd@^6.22.0, babel-plugin-transform-es2015-modules-amd@^6.24.1:
568568
version "6.24.1"
569569
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-amd/-/babel-plugin-transform-es2015-modules-amd-6.24.1.tgz#3b3e54017239842d6d19c3011c4bd2f00a00d154"
570570
dependencies:
571571
babel-plugin-transform-es2015-modules-commonjs "^6.24.1"
572572
babel-runtime "^6.22.0"
573573
babel-template "^6.24.1"
574574

575-
babel-plugin-transform-es2015-modules-commonjs@^6.24.1:
575+
babel-plugin-transform-es2015-modules-commonjs@^6.23.0, babel-plugin-transform-es2015-modules-commonjs@^6.24.1:
576576
version "6.24.1"
577577
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-commonjs/-/babel-plugin-transform-es2015-modules-commonjs-6.24.1.tgz#d3e310b40ef664a36622200097c6d440298f2bfe"
578578
dependencies:
@@ -581,30 +581,30 @@ babel-plugin-transform-es2015-modules-commonjs@^6.24.1:
581581
babel-template "^6.24.1"
582582
babel-types "^6.24.1"
583583

584-
babel-plugin-transform-es2015-modules-systemjs@^6.24.1:
584+
babel-plugin-transform-es2015-modules-systemjs@^6.23.0, babel-plugin-transform-es2015-modules-systemjs@^6.24.1:
585585
version "6.24.1"
586586
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-systemjs/-/babel-plugin-transform-es2015-modules-systemjs-6.24.1.tgz#ff89a142b9119a906195f5f106ecf305d9407d23"
587587
dependencies:
588588
babel-helper-hoist-variables "^6.24.1"
589589
babel-runtime "^6.22.0"
590590
babel-template "^6.24.1"
591591

592-
babel-plugin-transform-es2015-modules-umd@^6.24.1:
592+
babel-plugin-transform-es2015-modules-umd@^6.23.0, babel-plugin-transform-es2015-modules-umd@^6.24.1:
593593
version "6.24.1"
594594
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-umd/-/babel-plugin-transform-es2015-modules-umd-6.24.1.tgz#ac997e6285cd18ed6176adb607d602344ad38468"
595595
dependencies:
596596
babel-plugin-transform-es2015-modules-amd "^6.24.1"
597597
babel-runtime "^6.22.0"
598598
babel-template "^6.24.1"
599599

600-
babel-plugin-transform-es2015-object-super@^6.24.1:
600+
babel-plugin-transform-es2015-object-super@^6.22.0, babel-plugin-transform-es2015-object-super@^6.24.1:
601601
version "6.24.1"
602602
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-object-super/-/babel-plugin-transform-es2015-object-super-6.24.1.tgz#24cef69ae21cb83a7f8603dad021f572eb278f8d"
603603
dependencies:
604604
babel-helper-replace-supers "^6.24.1"
605605
babel-runtime "^6.22.0"
606606

607-
babel-plugin-transform-es2015-parameters@^6.24.1:
607+
babel-plugin-transform-es2015-parameters@^6.23.0, babel-plugin-transform-es2015-parameters@^6.24.1:
608608
version "6.24.1"
609609
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-parameters/-/babel-plugin-transform-es2015-parameters-6.24.1.tgz#57ac351ab49caf14a97cd13b09f66fdf0a625f2b"
610610
dependencies:
@@ -615,7 +615,7 @@ babel-plugin-transform-es2015-parameters@^6.24.1:
615615
babel-traverse "^6.24.1"
616616
babel-types "^6.24.1"
617617

618-
babel-plugin-transform-es2015-shorthand-properties@^6.24.1:
618+
babel-plugin-transform-es2015-shorthand-properties@^6.22.0, babel-plugin-transform-es2015-shorthand-properties@^6.24.1:
619619
version "6.24.1"
620620
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-shorthand-properties/-/babel-plugin-transform-es2015-shorthand-properties-6.24.1.tgz#24f875d6721c87661bbd99a4622e51f14de38aa0"
621621
dependencies:
@@ -628,7 +628,7 @@ babel-plugin-transform-es2015-spread@^6.22.0:
628628
dependencies:
629629
babel-runtime "^6.22.0"
630630

631-
babel-plugin-transform-es2015-sticky-regex@^6.24.1:
631+
babel-plugin-transform-es2015-sticky-regex@^6.22.0, babel-plugin-transform-es2015-sticky-regex@^6.24.1:
632632
version "6.24.1"
633633
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-sticky-regex/-/babel-plugin-transform-es2015-sticky-regex-6.24.1.tgz#00c1cdb1aca71112cdf0cf6126c2ed6b457ccdbc"
634634
dependencies:
@@ -642,21 +642,21 @@ babel-plugin-transform-es2015-template-literals@^6.22.0:
642642
dependencies:
643643
babel-runtime "^6.22.0"
644644

645-
babel-plugin-transform-es2015-typeof-symbol@^6.22.0:
645+
babel-plugin-transform-es2015-typeof-symbol@^6.22.0, babel-plugin-transform-es2015-typeof-symbol@^6.23.0:
646646
version "6.23.0"
647647
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-typeof-symbol/-/babel-plugin-transform-es2015-typeof-symbol-6.23.0.tgz#dec09f1cddff94b52ac73d505c84df59dcceb372"
648648
dependencies:
649649
babel-runtime "^6.22.0"
650650

651-
babel-plugin-transform-es2015-unicode-regex@^6.24.1:
651+
babel-plugin-transform-es2015-unicode-regex@^6.22.0, babel-plugin-transform-es2015-unicode-regex@^6.24.1:
652652
version "6.24.1"
653653
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-unicode-regex/-/babel-plugin-transform-es2015-unicode-regex-6.24.1.tgz#d38b12f42ea7323f729387f18a7c5ae1faeb35e9"
654654
dependencies:
655655
babel-helper-regex "^6.24.1"
656656
babel-runtime "^6.22.0"
657657
regexpu-core "^2.0.0"
658658

659-
babel-plugin-transform-exponentiation-operator@^6.24.1:
659+
babel-plugin-transform-exponentiation-operator@^6.22.0, babel-plugin-transform-exponentiation-operator@^6.24.1:
660660
version "6.24.1"
661661
resolved "https://registry.yarnpkg.com/babel-plugin-transform-exponentiation-operator/-/babel-plugin-transform-exponentiation-operator-6.24.1.tgz#2ab0c9c7f3098fa48907772bb813fe41e8de3a0e"
662662
dependencies:
@@ -671,7 +671,7 @@ babel-plugin-transform-object-rest-spread@^6.22.0:
671671
babel-plugin-syntax-object-rest-spread "^6.8.0"
672672
babel-runtime "^6.22.0"
673673

674-
babel-plugin-transform-regenerator@^6.24.1:
674+
babel-plugin-transform-regenerator@^6.22.0, babel-plugin-transform-regenerator@^6.24.1:
675675
version "6.24.1"
676676
resolved "https://registry.yarnpkg.com/babel-plugin-transform-regenerator/-/babel-plugin-transform-regenerator-6.24.1.tgz#b8da305ad43c3c99b4848e4fe4037b770d23c418"
677677
dependencies:
@@ -690,6 +690,41 @@ babel-plugin-transform-strict-mode@^6.24.1:
690690
babel-runtime "^6.22.0"
691691
babel-types "^6.24.1"
692692

693+
babel-preset-env@^1.5.2:
694+
version "1.5.2"
695+
resolved "https://registry.yarnpkg.com/babel-preset-env/-/babel-preset-env-1.5.2.tgz#cd4ae90a6e94b709f97374b33e5f8b983556adef"
696+
dependencies:
697+
babel-plugin-check-es2015-constants "^6.22.0"
698+
babel-plugin-syntax-trailing-function-commas "^6.22.0"
699+
babel-plugin-transform-async-to-generator "^6.22.0"
700+
babel-plugin-transform-es2015-arrow-functions "^6.22.0"
701+
babel-plugin-transform-es2015-block-scoped-functions "^6.22.0"
702+
babel-plugin-transform-es2015-block-scoping "^6.23.0"
703+
babel-plugin-transform-es2015-classes "^6.23.0"
704+
babel-plugin-transform-es2015-computed-properties "^6.22.0"
705+
babel-plugin-transform-es2015-destructuring "^6.23.0"
706+
babel-plugin-transform-es2015-duplicate-keys "^6.22.0"
707+
babel-plugin-transform-es2015-for-of "^6.23.0"
708+
babel-plugin-transform-es2015-function-name "^6.22.0"
709+
babel-plugin-transform-es2015-literals "^6.22.0"
710+
babel-plugin-transform-es2015-modules-amd "^6.22.0"
711+
babel-plugin-transform-es2015-modules-commonjs "^6.23.0"
712+
babel-plugin-transform-es2015-modules-systemjs "^6.23.0"
713+
babel-plugin-transform-es2015-modules-umd "^6.23.0"
714+
babel-plugin-transform-es2015-object-super "^6.22.0"
715+
babel-plugin-transform-es2015-parameters "^6.23.0"
716+
babel-plugin-transform-es2015-shorthand-properties "^6.22.0"
717+
babel-plugin-transform-es2015-spread "^6.22.0"
718+
babel-plugin-transform-es2015-sticky-regex "^6.22.0"
719+
babel-plugin-transform-es2015-template-literals "^6.22.0"
720+
babel-plugin-transform-es2015-typeof-symbol "^6.23.0"
721+
babel-plugin-transform-es2015-unicode-regex "^6.22.0"
722+
babel-plugin-transform-exponentiation-operator "^6.22.0"
723+
babel-plugin-transform-regenerator "^6.22.0"
724+
browserslist "^2.1.2"
725+
invariant "^2.2.2"
726+
semver "^5.3.0"
727+
693728
babel-preset-es2015@^6.24.1:
694729
version "6.24.1"
695730
resolved "https://registry.yarnpkg.com/babel-preset-es2015/-/babel-preset-es2015-6.24.1.tgz#d44050d6bc2c9feea702aaf38d727a0210538939"
@@ -921,6 +956,13 @@ browserslist@^1.7.6:
921956
caniuse-db "^1.0.30000631"
922957
electron-to-chromium "^1.2.5"
923958

959+
browserslist@^2.1.2:
960+
version "2.1.5"
961+
resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-2.1.5.tgz#e882550df3d1cd6d481c1a3e0038f2baf13a4711"
962+
dependencies:
963+
caniuse-lite "^1.0.30000684"
964+
electron-to-chromium "^1.3.14"
965+
924966
buffer-shims@^1.0.0:
925967
version "1.0.0"
926968
resolved "https://registry.yarnpkg.com/buffer-shims/-/buffer-shims-1.0.0.tgz#9978ce317388c649ad8793028c3477ef044a8b51"
@@ -989,6 +1031,10 @@ caniuse-db@^1.0.30000631, caniuse-db@^1.0.30000634:
9891031
version "1.0.30000636"
9901032
resolved "https://registry.yarnpkg.com/caniuse-db/-/caniuse-db-1.0.30000636.tgz#08230e9dd26632193f29c9d935185c6f6f9fd9ef"
9911033

1034+
caniuse-lite@^1.0.30000684:
1035+
version "1.0.30000696"
1036+
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30000696.tgz#30f2695d2a01a0dfd779a26ab83f4d134b3da5cc"
1037+
9921038
caseless@~0.11.0:
9931039
version "0.11.0"
9941040
resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.11.0.tgz#715b96ea9841593cc33067923f5ec60ebda4f7d7"
@@ -1641,6 +1687,10 @@ electron-to-chromium@^1.2.5:
16411687
version "1.2.7"
16421688
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.2.7.tgz#4f748061407e478c76256d04496972b71f647407"
16431689

1690+
electron-to-chromium@^1.3.14:
1691+
version "1.3.15"
1692+
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.15.tgz#08397934891cbcfaebbd18b82a95b5a481138369"
1693+
16441694
emojis-list@^2.0.0:
16451695
version "2.1.0"
16461696
resolved "https://registry.yarnpkg.com/emojis-list/-/emojis-list-2.1.0.tgz#4daa4d9db00f9819880c79fa457ae5b09a1fd389"
@@ -2648,7 +2698,7 @@ interpret@^1.0.0:
26482698
version "1.0.1"
26492699
resolved "https://registry.yarnpkg.com/interpret/-/interpret-1.0.1.tgz#d579fb7f693b858004947af39fa0db49f795602c"
26502700

2651-
invariant@^2.2.0:
2701+
invariant@^2.2.0, invariant@^2.2.2:
26522702
version "2.2.2"
26532703
resolved "https://registry.yarnpkg.com/invariant/-/invariant-2.2.2.tgz#9e1f56ac0acdb6bf303306f338be3b204ae60360"
26542704
dependencies:

0 commit comments

Comments
 (0)