Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
- gulp fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
wonilsuhibm committed May 13, 2018
1 parent ad2339b commit 65062d5
Show file tree
Hide file tree
Showing 13 changed files with 1,279 additions and 120 deletions.
8 changes: 1 addition & 7 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
{
"presets": ["env"],
"plugins": [
"transform-es2015-destructuring",
"transform-object-rest-spread",
"transform-runtime",
"syntax-trailing-function-commas"
]
"presets": ["env"]
}
Empty file added bundle.js
Empty file.
109 changes: 109 additions & 0 deletions dist/config-constants.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
"use strict";

import constants from './constants.js';

const curves = {
[constants.PROPERTY_MOVE]:{
[constants.MOMENT_EXPRESSIVE]:{
"easeInOut":"cubic-bezier(0.4, 0.14, 0.3, 1)",
"easeIn":"cubic-bezier(0.4, 0.14, 1, 1)",
"easeOut":"cubic-bezier(0, 0, 0.3, 1)",
},
[constants.MOMENT_PRODUCTIVE]:{
"easeInOut":"cubic-bezier(0.2, 0.2, 0.38, 0.9)",
"easeIn":"cubic-bezier(0.2, 0, 1, 0.9)",
"easeOut":"cubic-bezier(0, 0, 0.38, 0.9)",
},
[constants.MOMENT_NARRATIVE]:{
"easeInOut":"cubic-bezier(0.29, 0.04, 0.23, 1)",
"easeIn":"cubic-bezier(0.39, .06, 1, 1)",
"easeOut":"cubic-bezier(0, 0, 0.3, 1)",
},
[constants.MOMENT_CELEBRATORY]:{
"easeInOut":"cubic-bezier(0.29, 0.04, 0.23, 1)",
"easeIn":"cubic-bezier(0.39, .06, 1, 1)",
"easeOut":"cubic-bezier(0, 0, 0.3, 1)",
}
},
[constants.PROPERTY_SCALE]:{
[constants.MOMENT_EXPRESSIVE]:{
"easeInOut":"cubic-bezier(0.4, 0.14, 0.3, 1)",
"easeIn":"cubic-bezier(0.4, 0.14, 1, 1)",
"easeOut":"cubic-bezier(0, 0, 0.3, 1)",
},
[constants.MOMENT_PRODUCTIVE]:{
"easeInOut":"cubic-bezier(0.2, 0.2, 0.38, 0.9)",
"easeIn":"cubic-bezier(0.2, 0, 1, 0.9)",
"easeOut":"cubic-bezier(0, 0, 0.38, 0.9)",
},
[constants.MOMENT_NARRATIVE]:{
"easeInOut":"cubic-bezier(0.29, 0.04, 0.23, 1)",
"easeIn":"cubic-bezier(0.39, .06, 1, 1)",
"easeOut":"cubic-bezier(0, 0, 0.3, 1)",
},
[constants.MOMENT_CELEBRATORY]:{
"easeInOut":"cubic-bezier(0.29, 0.04, 0.23, 1)",
"easeIn":"cubic-bezier(0.39, .06, 1, 1)",
"easeOut":"cubic-bezier(0, 0, 0.3, 1)",
}
},
[constants.PROPERTY_FADE]:{
[constants.MOMENT_EXPRESSIVE]:{
"easeInOut":"cubic-bezier(0.4, 0.14, 0.3, 1)",
"easeIn":"cubic-bezier(0.4, 0.14, 1, 1)",
"easeOut":"cubic-bezier(0, 0, 0.3, 1)",
},
[constants.MOMENT_PRODUCTIVE]:{
"easeInOut":"cubic-bezier(0.2, 0.2, 0.38, 0.9)",
"easeIn":"cubic-bezier(0.2, 0, 1, 0.9)",
"easeOut":"cubic-bezier(0, 0, 0.38, 0.9)",
},
[constants.MOMENT_NARRATIVE]:{
"easeInOut":"cubic-bezier(0.29, 0.04, 0.23, 1)",
"easeIn":"cubic-bezier(0.39, .06, 1, 1)",
"easeOut":"cubic-bezier(0, 0, 0.3, 1)",
},
[constants.MOMENT_CELEBRATORY]:{
"easeInOut":"cubic-bezier(0.29, 0.04, 0.23, 1)",
"easeIn":"cubic-bezier(0.39, .06, 1, 1)",
"easeOut":"cubic-bezier(0, 0, 0.3, 1)",
}
},
[constants.PROPERTY_ROTATE]:{
[constants.MOMENT_EXPRESSIVE]:{
"easeInOut":"cubic-bezier(0.4, 0.14, 0.3, 1)",
"easeIn":"cubic-bezier(0.4, 0.14, 1, 1)",
"easeOut":"cubic-bezier(0, 0, 0.3, 1)",
},
[constants.MOMENT_PRODUCTIVE]:{
"easeInOut":"cubic-bezier(0.2, 0.2, 0.38, 0.9)",
"easeIn":"cubic-bezier(0.2, 0, 1, 0.9)",
"easeOut":"cubic-bezier(0, 0, 0.38, 0.9)",
},
[constants.MOMENT_NARRATIVE]:{
"easeInOut":"cubic-bezier(0.29, 0.04, 0.23, 1)",
"easeIn":"cubic-bezier(0.39, .06, 1, 1)",
"easeOut":"cubic-bezier(0, 0, 0.3, 1)",
},
[constants.MOMENT_CELEBRATORY]:{
"easeInOut":"cubic-bezier(0.29, 0.04, 0.23, 1)",
"easeIn":"cubic-bezier(0.39, .06, 1, 1)",
"easeOut":"cubic-bezier(0, 0, 0.3, 1)",
}
}
};

const motionModes = [constants.MOMENT_EXPRESSIVE, constants.MOMENT_PRODUCTIVE, constants.MOMENT_NARRATIVE, constants.MOMENT_CELEBRATORY];

const distances = {
[constants.PROPERTY_MOVE]:[10, 25, 50, 75, 100, 200, 400, 800, 1600, 3200],
[constants.PROPERTY_SCALE]:[100, 200, 400, 800, 1600, 3200, 6400, 12800, 25600, 51200, 102400, 204800],
[constants.PROPERTY_FADE]:[25, 50, 75, 100],
[constants.PROPERTY_ROTATE]:[30, 60, 90, 120, 150, 180, 270, 360]
};

const sizes = '123456789'.split('').reduce( (prev, curr, i) => [...prev, prev[prev.length-1] * 4], [8*8]);

module.exports = {
curves, distances, sizes, motionModes
}
14 changes: 14 additions & 0 deletions dist/constants.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
export default {
MOMENT_EXPRESSIVE:"expr",
MOMENT_PRODUCTIVE:"prod",
MOMENT_NARRATIVE:"narr",
MOMENT_CELEBRATORY:"celeb",
SIZE_BASE:20,
PROPERTY_MOVE:"move",
PROPERTY_SCALE:"scale",
PROPERTY_FADE:"fade",
PROPERTY_ROTATE:"rotate",
EASE_IN_OUT:"easeInOut",
EASE_IN:"easeIn",
EASE_OUT:"easeOut"
}
151 changes: 151 additions & 0 deletions dist/getCurve.js

Large diffs are not rendered by default.

Loading

0 comments on commit 65062d5

Please sign in to comment.