flow like the river
This commit is contained in:
commit
013fe673f3
42435 changed files with 5764238 additions and 0 deletions
39
VISUALIZACION/node_modules/polished/lib/easings/easeIn.js
generated
vendored
Executable file
39
VISUALIZACION/node_modules/polished/lib/easings/easeIn.js
generated
vendored
Executable file
|
|
@ -0,0 +1,39 @@
|
|||
"use strict";
|
||||
|
||||
exports.__esModule = true;
|
||||
exports["default"] = easeIn;
|
||||
var functionsMap = {
|
||||
back: 'cubic-bezier(0.600, -0.280, 0.735, 0.045)',
|
||||
circ: 'cubic-bezier(0.600, 0.040, 0.980, 0.335)',
|
||||
cubic: 'cubic-bezier(0.550, 0.055, 0.675, 0.190)',
|
||||
expo: 'cubic-bezier(0.950, 0.050, 0.795, 0.035)',
|
||||
quad: 'cubic-bezier(0.550, 0.085, 0.680, 0.530)',
|
||||
quart: 'cubic-bezier(0.895, 0.030, 0.685, 0.220)',
|
||||
quint: 'cubic-bezier(0.755, 0.050, 0.855, 0.060)',
|
||||
sine: 'cubic-bezier(0.470, 0.000, 0.745, 0.715)'
|
||||
};
|
||||
|
||||
/**
|
||||
* String to represent common easing functions as demonstrated here: (github.com/jaukia/easie).
|
||||
*
|
||||
* @example
|
||||
* // Styles as object usage
|
||||
* const styles = {
|
||||
* 'transitionTimingFunction': easeIn('quad')
|
||||
* }
|
||||
*
|
||||
* // styled-components usage
|
||||
* const div = styled.div`
|
||||
* transitionTimingFunction: ${easeIn('quad')};
|
||||
* `
|
||||
*
|
||||
* // CSS as JS Output
|
||||
*
|
||||
* 'div': {
|
||||
* 'transitionTimingFunction': 'cubic-bezier(0.550, 0.085, 0.680, 0.530)',
|
||||
* }
|
||||
*/
|
||||
function easeIn(functionName) {
|
||||
return functionsMap[functionName.toLowerCase().trim()];
|
||||
}
|
||||
module.exports = exports.default;
|
||||
Loading…
Add table
Add a link
Reference in a new issue