Skip to content

Commit

Permalink
Update Dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Anthony Du Pont committed Apr 21, 2020
1 parent d316905 commit 3d9cf22
Show file tree
Hide file tree
Showing 12 changed files with 12,449 additions and 7,592 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ Older browsers or versions can be supported by Highway by combining it with **po
## Releases
#### 2.2.x

- :lock: Update dependencies for security purposes
- :tada: Add new websites in the *Hall of Fame*
- :tada: Add [Polyfills](https://highway.js.org/examples/polyfills.html) example to documentation
- :sparkles: Reduce bundle size significantly with [microbundle](https://github.com/developit/microbundle)
Expand Down
113 changes: 13 additions & 100 deletions docs/assets/js/main.js

Large diffs are not rendered by default.

5,494 changes: 5,494 additions & 0 deletions docs/package-lock.json

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,18 @@
"serve": "jekyll serve"
},
"devDependencies": {
"@babel/core": "^7.5.4",
"@babel/plugin-syntax-dynamic-import": "^7.2.0",
"@babel/preset-env": "^7.5.4",
"babel-loader": "^8.0.6",
"core-js": "^3.1.4",
"regenerator-runtime": "^0.13.2",
"webpack": "^4.35.3",
"webpack-cli": "^3.3.6"
"@babel/core": "^7.9.0",
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
"@babel/preset-env": "^7.9.5",
"babel-loader": "^8.1.0",
"core-js": "^3.6.5",
"jekyll": "^3.0.0-beta1",
"regenerator-runtime": "^0.13.5",
"webpack": "^4.42.1",
"webpack-cli": "^3.3.11"
},
"dependencies": {
"gsap": "^2.1.3",
"jekyll": "^3.0.0-beta1",
"gsap": "^3.2.6",
"whatwg-fetch": "^3.0.0"
}
}
6 changes: 3 additions & 3 deletions docs/src/js/transitions/basic.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import Highway from 'highway';

// GSAP
import Tween from 'gsap';
import { TweenMax } from 'gsap';

// Basic
class Basic extends Highway.Transition {
Expand All @@ -14,15 +14,15 @@ class Basic extends Highway.Transition {
from.remove();

// Animation
Tween.set(to, { opacity: 1 });
TweenMax.set(to, { opacity: 1 });

// Done
done();
}

out({ from, done }) {
// Animation
Tween.set(from, { opacity: 0 });
TweenMax.set(from, { opacity: 0 });

// Done
done();
Expand Down
6 changes: 3 additions & 3 deletions docs/src/js/transitions/fade.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import Highway from 'highway';

// GSAP
import Tween from 'gsap';
import { TweenMax } from 'gsap';

// Fade
class Fade extends Highway.Transition {
Expand All @@ -14,7 +14,7 @@ class Fade extends Highway.Transition {
from.remove();

// Animation
Tween.fromTo(to, 0.5,
TweenMax.fromTo(to, 0.5,
{ opacity: 0 },
{
opacity: 1,
Expand All @@ -25,7 +25,7 @@ class Fade extends Highway.Transition {

out({ from, done }) {
// Animation
Tween.fromTo(from, 0.5,
TweenMax.fromTo(from, 0.5,
{ opacity: 1 },
{
opacity: 0,
Expand Down
6 changes: 3 additions & 3 deletions docs/src/js/transitions/overlap.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import Highway from 'highway';

// GSAP
import Tween from 'gsap';
import { TweenMax } from 'gsap';

// Fade
class Overlap extends Highway.Transition {
Expand All @@ -11,7 +11,7 @@ class Overlap extends Highway.Transition {
window.scrollTo(0, 0);

// Animation
Tween.fromTo(to, 0.5,
TweenMax.fromTo(to, 0.5,
{ opacity: 0 },
{
opacity: 1,
Expand All @@ -20,7 +20,7 @@ class Overlap extends Highway.Transition {
);

// Animation
Tween.fromTo(from, 0.5,
TweenMax.fromTo(from, 0.5,
{ opacity: 1 },
{
opacity: 0,
Expand Down
3 changes: 1 addition & 2 deletions docs/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@ module.exports = {
},
resolve: {
alias: {
'highway': 'build/highway.js',
'gsap': 'gsap/TweenMax.js'
'highway': 'build/highway.js'
},
modules: ['.', 'node_modules'],
extensions: ['.js']
Expand Down
Loading

0 comments on commit 3d9cf22

Please sign in to comment.