@@ -7,8 +7,11 @@ LICENSE file in the root directory of this source tree.
77import type { Animation } from '../types' ;
88
99const animation : Animation = {
10+ timing0 : '0' ,
1011 timing100 : '100ms' ,
12+ timing150 : '150ms' ,
1113 timing200 : '200ms' ,
14+ timing250 : '250ms' ,
1215 timing300 : '300ms' ,
1316 timing400 : '400ms' ,
1417 timing500 : '500ms' ,
@@ -17,13 +20,31 @@ const animation: Animation = {
1720 timing800 : '800ms' ,
1821 timing900 : '900ms' ,
1922 timing1000 : '1000ms' ,
20- easeInCurve : 'cubic-bezier(.8, .2, .6, 1)' ,
23+ timing1500 : '1500ms' ,
24+ timing3000 : '3000ms' ,
25+ timing5000 : '5000ms' ,
26+ timing7000 : '7000ms' ,
27+ // Moves at constant speed. Commonly used for opacity and color changes.
28+ easeLinear : 'cubic-bezier(0, 0, 1, 1)' ,
29+ linearCurve : 'cubic-bezier(0, 0, 1, 1)' , // use easeLinear
30+ // Motion starts at top speed and comes to a very gradual stop.
31+ // Commonly used for entering elements.
32+ easeDecelerate : 'cubic-bezier(0.22, 1, 0.36, 1)' ,
33+ easeOutQuinticCurve : 'cubic-bezier(0.22, 1, 0.36, 1)' , // use easeDecelerate
2134 easeOutCurve : 'cubic-bezier(.2, .8, .4, 1)' ,
35+ // Motion begins very gradually and ends at top speed.
36+ // Commonly used for exiting elements.
37+ easeAccelerate : 'cubic-bezier(0.64, 0, 0.78, 0)' ,
38+ easeInQuinticCurve : 'cubic-bezier(0.64, 0, 0.78, 0)' , // use easeAccelerate
39+ easeInCurve : 'cubic-bezier(.8, .2, .6, 1)' ,
40+ // Motion begins and ends very gradually with high velocity movement
41+ // in the middle.A good default for most motion.
42+ easeAccelerateDecelerate : 'cubic-bezier(0.83, 0, 0.17, 1)' ,
43+ easeInOutQuinticCurve : 'cubic-bezier(0.86, 0, 0.07, 1)' , // use easeAccelerateDecelerate
2244 easeInOutCurve : 'cubic-bezier(0.4, 0, 0.2, 1)' ,
23- easeInQuinticCurve : 'cubic-bezier(0.755, 0.05, 0.855, 0.06)' ,
24- easeOutQuinticCurve : 'cubic-bezier(0.23, 1, 0.32, 1)' ,
25- easeInOutQuinticCurve : 'cubic-bezier(0.86, 0, 0.07, 1)' ,
26- linearCurve : 'cubic-bezier(0, 0, 1, 1)' ,
45+ // Motion begins naturally and speeds up slightly. Good for feeling
46+ // of responsiveness when paired with short durations.
47+ easeResponsiveAccelerate : 'cubic-bezier(0.11, 0, 0.5, 0)' ,
2748} ;
2849
2950export default animation ;
0 commit comments