UNPKG

876 BJavaScriptView Raw
1'use strict';
2
3Object.defineProperty(exports, '__esModule', { value: true });
4
5// Springs to be used with react-spring
6var springs = {
7 // Super slow spring, for debugging purposes
8 debug: {
9 mass: 1,
10 tension: 10,
11 friction: 40
12 },
13 // Slow spring, can be used to move large things (e.g. a side panel).
14 lazy: {
15 mass: 1,
16 tension: 120,
17 friction: 20
18 },
19 // Medium speed spring, can be used to move small objects.
20 smooth: {
21 mass: 0.8,
22 tension: 300,
23 friction: 28
24 },
25 // Fast speed spring, for interactions that feel “almost instant”.
26 swift: {
27 mass: 0.5,
28 tension: 800,
29 friction: 30
30 },
31 // Super fast speed spring, for interactions
32 // that feel instant (e.g. a checkbox tick).
33 instant: {
34 mass: 0.3,
35 tension: 1000,
36 friction: 30
37 }
38};
39
40exports.springs = springs;
41//# sourceMappingURL=springs.js.map