@prodkt/animations 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- package/LICENSE.md +7 -0
- package/README.md +70 -0
- package/dist/LICENSE +21 -0
- package/dist/attention_seekers/bounce.js +15 -0
- package/dist/attention_seekers/flash.js +7 -0
- package/dist/attention_seekers/headShake.js +8 -0
- package/dist/attention_seekers/heartBeat.js +7 -0
- package/dist/attention_seekers/jello.js +12 -0
- package/dist/attention_seekers/pulse.js +5 -0
- package/dist/attention_seekers/rubberBand.js +9 -0
- package/dist/attention_seekers/shake.js +13 -0
- package/dist/attention_seekers/shakeX.js +13 -0
- package/dist/attention_seekers/shakeY.js +13 -0
- package/dist/attention_seekers/swing.js +7 -0
- package/dist/attention_seekers/tada.js +13 -0
- package/dist/attention_seekers/wobble.js +9 -0
- package/dist/back_entrances/backInDown.js +5 -0
- package/dist/back_entrances/backInLeft.js +5 -0
- package/dist/back_entrances/backInRight.js +5 -0
- package/dist/back_entrances/backInUp.js +5 -0
- package/dist/back_exits/backOutDown.js +5 -0
- package/dist/back_exits/backOutLeft.js +5 -0
- package/dist/back_exits/backOutRight.js +5 -0
- package/dist/back_exits/backOutUp.js +5 -0
- package/dist/bouncing_entrances/bounceIn.js +14 -0
- package/dist/bouncing_entrances/bounceInDown.js +12 -0
- package/dist/bouncing_entrances/bounceInLeft.js +12 -0
- package/dist/bouncing_entrances/bounceInRight.js +12 -0
- package/dist/bouncing_entrances/bounceInUp.js +12 -0
- package/dist/bouncing_exits/bounceOut.js +6 -0
- package/dist/bouncing_exits/bounceOutDown.js +6 -0
- package/dist/bouncing_exits/bounceOutLeft.js +4 -0
- package/dist/bouncing_exits/bounceOutRight.js +4 -0
- package/dist/bouncing_exits/bounceOutUp.js +6 -0
- package/dist/easings/easings.js +31 -0
- package/dist/fading_entrances/fadeIn.js +4 -0
- package/dist/fading_entrances/fadeInBottomLeft.js +4 -0
- package/dist/fading_entrances/fadeInBottomRight.js +4 -0
- package/dist/fading_entrances/fadeInDown.js +4 -0
- package/dist/fading_entrances/fadeInDownBig.js +4 -0
- package/dist/fading_entrances/fadeInLeft.js +4 -0
- package/dist/fading_entrances/fadeInLeftBig.js +4 -0
- package/dist/fading_entrances/fadeInRight.js +4 -0
- package/dist/fading_entrances/fadeInRightBig.js +4 -0
- package/dist/fading_entrances/fadeInTopLeft.js +4 -0
- package/dist/fading_entrances/fadeInTopRight.js +4 -0
- package/dist/fading_entrances/fadeInUp.js +4 -0
- package/dist/fading_entrances/fadeInUpBig.js +4 -0
- package/dist/fading_exits/fadeOut.js +4 -0
- package/dist/fading_exits/fadeOutBottomLeft.js +4 -0
- package/dist/fading_exits/fadeOutBottomRight.js +4 -0
- package/dist/fading_exits/fadeOutDown.js +4 -0
- package/dist/fading_exits/fadeOutDownBig.js +4 -0
- package/dist/fading_exits/fadeOutLeft.js +4 -0
- package/dist/fading_exits/fadeOutLeftBig.js +4 -0
- package/dist/fading_exits/fadeOutRight.js +4 -0
- package/dist/fading_exits/fadeOutRightBig.js +4 -0
- package/dist/fading_exits/fadeOutTopLeft.js +4 -0
- package/dist/fading_exits/fadeOutTopRight.js +4 -0
- package/dist/fading_exits/fadeOutUp.js +4 -0
- package/dist/fading_exits/fadeOutUpBig.js +4 -0
- package/dist/flippers/flip.js +27 -0
- package/dist/flippers/flipInX.js +7 -0
- package/dist/flippers/flipInY.js +7 -0
- package/dist/flippers/flipOutX.js +5 -0
- package/dist/flippers/flipOutY.js +5 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +99 -0
- package/dist/lightspeed/lightSpeedInLeft.js +6 -0
- package/dist/lightspeed/lightSpeedInRight.js +6 -0
- package/dist/lightspeed/lightSpeedOutLeft.js +4 -0
- package/dist/lightspeed/lightSpeedOutRight.js +4 -0
- package/dist/rotating_entrances/rotateIn.js +4 -0
- package/dist/rotating_entrances/rotateInDownLeft.js +4 -0
- package/dist/rotating_entrances/rotateInDownRight.js +4 -0
- package/dist/rotating_entrances/rotateInUpLeft.js +4 -0
- package/dist/rotating_entrances/rotateInUpRight.js +4 -0
- package/dist/rotating_exits/rotateOut.js +4 -0
- package/dist/rotating_exits/rotateOutDownLeft.js +4 -0
- package/dist/rotating_exits/rotateOutDownRight.js +4 -0
- package/dist/rotating_exits/rotateOutUpLeft.js +4 -0
- package/dist/rotating_exits/rotateOutUpRight.js +4 -0
- package/dist/sliding_entrances/slideInDown.js +4 -0
- package/dist/sliding_entrances/slideInLeft.js +4 -0
- package/dist/sliding_entrances/slideInRight.js +4 -0
- package/dist/sliding_entrances/slideInUp.js +4 -0
- package/dist/sliding_exits/slideOutDown.js +4 -0
- package/dist/sliding_exits/slideOutLeft.js +4 -0
- package/dist/sliding_exits/slideOutRight.js +4 -0
- package/dist/sliding_exits/slideOutUp.js +4 -0
- package/dist/specials/hinge.js +8 -0
- package/dist/specials/jackInTheBox.js +6 -0
- package/dist/specials/rollIn.js +4 -0
- package/dist/specials/rollOut.js +4 -0
- package/dist/zooming_entrances/zoomIn.js +4 -0
- package/dist/zooming_entrances/zoomInDown.js +14 -0
- package/dist/zooming_entrances/zoomInLeft.js +14 -0
- package/dist/zooming_entrances/zoomInRight.js +14 -0
- package/dist/zooming_entrances/zoomInUp.js +14 -0
- package/dist/zooming_exits/zoomOut.js +5 -0
- package/dist/zooming_exits/zoomOutDown.js +14 -0
- package/dist/zooming_exits/zoomOutLeft.js +4 -0
- package/dist/zooming_exits/zoomOutRight.js +4 -0
- package/dist/zooming_exits/zoomOutUp.js +14 -0
- package/package.json +44 -0
package/LICENSE.md
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
Copyright (c) 2020 A Beautiful Site, LLC
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
4
|
+
|
5
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
6
|
+
|
7
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/README.md
ADDED
@@ -0,0 +1,70 @@
|
|
1
|
+
# Tovuti Animations
|
2
|
+
|
3
|
+
Your favorite [animate.css](https://animate.style/) effects available as ES modules for use with the [Web Animations API](https://developer.mozilla.org/en-US/docs/Web/API/Web_Animations_API).
|
4
|
+
|
5
|
+
- 🏆 ~100 quality animations
|
6
|
+
- 🎾 ~30 popular easings
|
7
|
+
- 🚚 Works with CDNs
|
8
|
+
- 🌲 Fully tree-shakeable
|
9
|
+
|
10
|
+
[Try it on JSFiddle](https://jsfiddle.net/tovutifunk/ohjmkgb1)
|
11
|
+
|
12
|
+
This module was built for [Tovuti](https://prodkt.cloud/), but it works well as a stand-alone library too!
|
13
|
+
|
14
|
+
## Installation
|
15
|
+
|
16
|
+
```bash
|
17
|
+
npm install @tovutifunk/animations
|
18
|
+
```
|
19
|
+
|
20
|
+
## Usage
|
21
|
+
|
22
|
+
Importing all animations:
|
23
|
+
|
24
|
+
```js
|
25
|
+
import * as animations from '@tovutifunk/animations';
|
26
|
+
```
|
27
|
+
|
28
|
+
Importing individual animations:
|
29
|
+
|
30
|
+
```js
|
31
|
+
import { bounce } from '@tovutifunk/animations';
|
32
|
+
```
|
33
|
+
|
34
|
+
Importing easings:
|
35
|
+
|
36
|
+
```js
|
37
|
+
import { easings } from '@tovutifunk/animations';
|
38
|
+
```
|
39
|
+
|
40
|
+
Animating an element:
|
41
|
+
|
42
|
+
```html
|
43
|
+
<div style="display: block; width: 100px; height: 100px; background: tomato; margin: 2rem;"></div>
|
44
|
+
|
45
|
+
<script type="module">
|
46
|
+
import { easings, flip } from 'https://cdn.jsdelivr.net/npm/@tovutifunk/animations@1/dist/index.js';
|
47
|
+
|
48
|
+
const box = document.querySelector('div');
|
49
|
+
|
50
|
+
box.animate(flip, {
|
51
|
+
duration: 1500,
|
52
|
+
iterations: Infinity,
|
53
|
+
easing: easings.easeInSine
|
54
|
+
});
|
55
|
+
</script>
|
56
|
+
```
|
57
|
+
|
58
|
+
This example uses the [jsDelivr CDN](https://www.jsdelivr.com/). To import the library locally, install it and make `node_modules/@tovutifunk/animations/dist` available to your app or bundler.
|
59
|
+
|
60
|
+
## Developers
|
61
|
+
|
62
|
+
This script parses all animation stylesheets found in `node_modules/animate.css` and generates [keyframe objects](https://developer.mozilla.org/en-US/docs/Web/API/Web_Animations_API/Keyframe_Formats) that you can use with the [Web Animations API](https://developer.mozilla.org/en-US/docs/Web/API/Web_Animations_API). As animations are tweaked and added to animate.css, the keyframes herein will be kept in sync when rerunning the script.
|
63
|
+
|
64
|
+
To build the project, run:
|
65
|
+
|
66
|
+
```bash
|
67
|
+
npm run build
|
68
|
+
```
|
69
|
+
|
70
|
+
This will purge and rebuild the `dist` directory.
|
package/dist/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2020 Daniel Eden
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
@@ -0,0 +1,15 @@
|
|
1
|
+
export const bounce = [
|
2
|
+
{ offset: 0, easing: 'cubic-bezier(0.215, 0.61, 0.355, 1)', transform: 'translate3d(0, 0, 0)' },
|
3
|
+
{ offset: 0.2, easing: 'cubic-bezier(0.215, 0.61, 0.355, 1)', transform: 'translate3d(0, 0, 0)' },
|
4
|
+
{ offset: 0.4, easing: 'cubic-bezier(0.755, 0.05, 0.855, 0.06)', transform: 'translate3d(0, -30px, 0) scaleY(1.1)' },
|
5
|
+
{ offset: 0.43, easing: 'cubic-bezier(0.755, 0.05, 0.855, 0.06)', transform: 'translate3d(0, -30px, 0) scaleY(1.1)' },
|
6
|
+
{ offset: 0.53, easing: 'cubic-bezier(0.215, 0.61, 0.355, 1)', transform: 'translate3d(0, 0, 0)' },
|
7
|
+
{ offset: 0.7, easing: 'cubic-bezier(0.755, 0.05, 0.855, 0.06)', transform: 'translate3d(0, -15px, 0) scaleY(1.05)' },
|
8
|
+
{
|
9
|
+
offset: 0.8,
|
10
|
+
'transition-timing-function': 'cubic-bezier(0.215, 0.61, 0.355, 1)',
|
11
|
+
transform: 'translate3d(0, 0, 0) scaleY(0.95)'
|
12
|
+
},
|
13
|
+
{ offset: 0.9, transform: 'translate3d(0, -4px, 0) scaleY(1.02)' },
|
14
|
+
{ offset: 1, easing: 'cubic-bezier(0.215, 0.61, 0.355, 1)', transform: 'translate3d(0, 0, 0)' }
|
15
|
+
];
|
@@ -0,0 +1,8 @@
|
|
1
|
+
export const headShake = [
|
2
|
+
{ offset: 0, transform: 'translateX(0)' },
|
3
|
+
{ offset: 0.065, transform: 'translateX(-6px) rotateY(-9deg)' },
|
4
|
+
{ offset: 0.185, transform: 'translateX(5px) rotateY(7deg)' },
|
5
|
+
{ offset: 0.315, transform: 'translateX(-3px) rotateY(-5deg)' },
|
6
|
+
{ offset: 0.435, transform: 'translateX(2px) rotateY(3deg)' },
|
7
|
+
{ offset: 0.5, transform: 'translateX(0)' }
|
8
|
+
];
|
@@ -0,0 +1,12 @@
|
|
1
|
+
export const jello = [
|
2
|
+
{ offset: 0, transform: 'translate3d(0, 0, 0)' },
|
3
|
+
{ offset: 0.111, transform: 'translate3d(0, 0, 0)' },
|
4
|
+
{ offset: 0.222, transform: 'skewX(-12.5deg) skewY(-12.5deg)' },
|
5
|
+
{ offset: 0.33299999999999996, transform: 'skewX(6.25deg) skewY(6.25deg)' },
|
6
|
+
{ offset: 0.444, transform: 'skewX(-3.125deg) skewY(-3.125deg)' },
|
7
|
+
{ offset: 0.555, transform: 'skewX(1.5625deg) skewY(1.5625deg)' },
|
8
|
+
{ offset: 0.6659999999999999, transform: 'skewX(-0.78125deg) skewY(-0.78125deg)' },
|
9
|
+
{ offset: 0.777, transform: 'skewX(0.390625deg) skewY(0.390625deg)' },
|
10
|
+
{ offset: 0.888, transform: 'skewX(-0.1953125deg) skewY(-0.1953125deg)' },
|
11
|
+
{ offset: 1, transform: 'translate3d(0, 0, 0)' }
|
12
|
+
];
|
@@ -0,0 +1,9 @@
|
|
1
|
+
export const rubberBand = [
|
2
|
+
{ offset: 0, transform: 'scale3d(1, 1, 1)' },
|
3
|
+
{ offset: 0.3, transform: 'scale3d(1.25, 0.75, 1)' },
|
4
|
+
{ offset: 0.4, transform: 'scale3d(0.75, 1.25, 1)' },
|
5
|
+
{ offset: 0.5, transform: 'scale3d(1.15, 0.85, 1)' },
|
6
|
+
{ offset: 0.65, transform: 'scale3d(0.95, 1.05, 1)' },
|
7
|
+
{ offset: 0.75, transform: 'scale3d(1.05, 0.95, 1)' },
|
8
|
+
{ offset: 1, transform: 'scale3d(1, 1, 1)' }
|
9
|
+
];
|
@@ -0,0 +1,13 @@
|
|
1
|
+
export const shake = [
|
2
|
+
{ offset: 0, transform: 'translate3d(0, 0, 0)' },
|
3
|
+
{ offset: 0.1, transform: 'translate3d(-10px, 0, 0)' },
|
4
|
+
{ offset: 0.2, transform: 'translate3d(10px, 0, 0)' },
|
5
|
+
{ offset: 0.3, transform: 'translate3d(-10px, 0, 0)' },
|
6
|
+
{ offset: 0.4, transform: 'translate3d(10px, 0, 0)' },
|
7
|
+
{ offset: 0.5, transform: 'translate3d(-10px, 0, 0)' },
|
8
|
+
{ offset: 0.6, transform: 'translate3d(10px, 0, 0)' },
|
9
|
+
{ offset: 0.7, transform: 'translate3d(-10px, 0, 0)' },
|
10
|
+
{ offset: 0.8, transform: 'translate3d(10px, 0, 0)' },
|
11
|
+
{ offset: 0.9, transform: 'translate3d(-10px, 0, 0)' },
|
12
|
+
{ offset: 1, transform: 'translate3d(0, 0, 0)' }
|
13
|
+
];
|
@@ -0,0 +1,13 @@
|
|
1
|
+
export const shakeX = [
|
2
|
+
{ offset: 0, transform: 'translate3d(0, 0, 0)' },
|
3
|
+
{ offset: 0.1, transform: 'translate3d(-10px, 0, 0)' },
|
4
|
+
{ offset: 0.2, transform: 'translate3d(10px, 0, 0)' },
|
5
|
+
{ offset: 0.3, transform: 'translate3d(-10px, 0, 0)' },
|
6
|
+
{ offset: 0.4, transform: 'translate3d(10px, 0, 0)' },
|
7
|
+
{ offset: 0.5, transform: 'translate3d(-10px, 0, 0)' },
|
8
|
+
{ offset: 0.6, transform: 'translate3d(10px, 0, 0)' },
|
9
|
+
{ offset: 0.7, transform: 'translate3d(-10px, 0, 0)' },
|
10
|
+
{ offset: 0.8, transform: 'translate3d(10px, 0, 0)' },
|
11
|
+
{ offset: 0.9, transform: 'translate3d(-10px, 0, 0)' },
|
12
|
+
{ offset: 1, transform: 'translate3d(0, 0, 0)' }
|
13
|
+
];
|
@@ -0,0 +1,13 @@
|
|
1
|
+
export const shakeY = [
|
2
|
+
{ offset: 0, transform: 'translate3d(0, 0, 0)' },
|
3
|
+
{ offset: 0.1, transform: 'translate3d(0, -10px, 0)' },
|
4
|
+
{ offset: 0.2, transform: 'translate3d(0, 10px, 0)' },
|
5
|
+
{ offset: 0.3, transform: 'translate3d(0, -10px, 0)' },
|
6
|
+
{ offset: 0.4, transform: 'translate3d(0, 10px, 0)' },
|
7
|
+
{ offset: 0.5, transform: 'translate3d(0, -10px, 0)' },
|
8
|
+
{ offset: 0.6, transform: 'translate3d(0, 10px, 0)' },
|
9
|
+
{ offset: 0.7, transform: 'translate3d(0, -10px, 0)' },
|
10
|
+
{ offset: 0.8, transform: 'translate3d(0, 10px, 0)' },
|
11
|
+
{ offset: 0.9, transform: 'translate3d(0, -10px, 0)' },
|
12
|
+
{ offset: 1, transform: 'translate3d(0, 0, 0)' }
|
13
|
+
];
|
@@ -0,0 +1,7 @@
|
|
1
|
+
export const swing = [
|
2
|
+
{ offset: 0.2, transform: 'rotate3d(0, 0, 1, 15deg)' },
|
3
|
+
{ offset: 0.4, transform: 'rotate3d(0, 0, 1, -10deg)' },
|
4
|
+
{ offset: 0.6, transform: 'rotate3d(0, 0, 1, 5deg)' },
|
5
|
+
{ offset: 0.8, transform: 'rotate3d(0, 0, 1, -5deg)' },
|
6
|
+
{ offset: 1, transform: 'rotate3d(0, 0, 1, 0deg)' }
|
7
|
+
];
|
@@ -0,0 +1,13 @@
|
|
1
|
+
export const tada = [
|
2
|
+
{ offset: 0, transform: 'scale3d(1, 1, 1)' },
|
3
|
+
{ offset: 0.1, transform: 'scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg)' },
|
4
|
+
{ offset: 0.2, transform: 'scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg)' },
|
5
|
+
{ offset: 0.3, transform: 'scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg)' },
|
6
|
+
{ offset: 0.4, transform: 'scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg)' },
|
7
|
+
{ offset: 0.5, transform: 'scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg)' },
|
8
|
+
{ offset: 0.6, transform: 'scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg)' },
|
9
|
+
{ offset: 0.7, transform: 'scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg)' },
|
10
|
+
{ offset: 0.8, transform: 'scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg)' },
|
11
|
+
{ offset: 0.9, transform: 'scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg)' },
|
12
|
+
{ offset: 1, transform: 'scale3d(1, 1, 1)' }
|
13
|
+
];
|
@@ -0,0 +1,9 @@
|
|
1
|
+
export const wobble = [
|
2
|
+
{ offset: 0, transform: 'translate3d(0, 0, 0)' },
|
3
|
+
{ offset: 0.15, transform: 'translate3d(-25%, 0, 0) rotate3d(0, 0, 1, -5deg)' },
|
4
|
+
{ offset: 0.3, transform: 'translate3d(20%, 0, 0) rotate3d(0, 0, 1, 3deg)' },
|
5
|
+
{ offset: 0.45, transform: 'translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -3deg)' },
|
6
|
+
{ offset: 0.6, transform: 'translate3d(10%, 0, 0) rotate3d(0, 0, 1, 2deg)' },
|
7
|
+
{ offset: 0.75, transform: 'translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -1deg)' },
|
8
|
+
{ offset: 1, transform: 'translate3d(0, 0, 0)' }
|
9
|
+
];
|
@@ -0,0 +1,14 @@
|
|
1
|
+
export const bounceIn = [
|
2
|
+
{ offset: 0, opacity: '0', transform: 'scale3d(0.3, 0.3, 0.3)' },
|
3
|
+
{ offset: 0, easing: 'cubic-bezier(0.215, 0.61, 0.355, 1)' },
|
4
|
+
{ offset: 0.2, transform: 'scale3d(1.1, 1.1, 1.1)' },
|
5
|
+
{ offset: 0.2, easing: 'cubic-bezier(0.215, 0.61, 0.355, 1)' },
|
6
|
+
{ offset: 0.4, transform: 'scale3d(0.9, 0.9, 0.9)' },
|
7
|
+
{ offset: 0.4, easing: 'cubic-bezier(0.215, 0.61, 0.355, 1)' },
|
8
|
+
{ offset: 0.6, opacity: '1', transform: 'scale3d(1.03, 1.03, 1.03)' },
|
9
|
+
{ offset: 0.6, easing: 'cubic-bezier(0.215, 0.61, 0.355, 1)' },
|
10
|
+
{ offset: 0.8, transform: 'scale3d(0.97, 0.97, 0.97)' },
|
11
|
+
{ offset: 0.8, easing: 'cubic-bezier(0.215, 0.61, 0.355, 1)' },
|
12
|
+
{ offset: 1, opacity: '1', transform: 'scale3d(1, 1, 1)' },
|
13
|
+
{ offset: 1, easing: 'cubic-bezier(0.215, 0.61, 0.355, 1)' }
|
14
|
+
];
|
@@ -0,0 +1,12 @@
|
|
1
|
+
export const bounceInDown = [
|
2
|
+
{ offset: 0, opacity: '0', transform: 'translate3d(0, -3000px, 0) scaleY(3)' },
|
3
|
+
{ offset: 0, easing: 'cubic-bezier(0.215, 0.61, 0.355, 1)' },
|
4
|
+
{ offset: 0.6, opacity: '1', transform: 'translate3d(0, 25px, 0) scaleY(0.9)' },
|
5
|
+
{ offset: 0.6, easing: 'cubic-bezier(0.215, 0.61, 0.355, 1)' },
|
6
|
+
{ offset: 0.75, transform: 'translate3d(0, -10px, 0) scaleY(0.95)' },
|
7
|
+
{ offset: 0.75, easing: 'cubic-bezier(0.215, 0.61, 0.355, 1)' },
|
8
|
+
{ offset: 0.9, transform: 'translate3d(0, 5px, 0) scaleY(0.985)' },
|
9
|
+
{ offset: 0.9, easing: 'cubic-bezier(0.215, 0.61, 0.355, 1)' },
|
10
|
+
{ offset: 1, transform: 'translate3d(0, 0, 0)' },
|
11
|
+
{ offset: 1, easing: 'cubic-bezier(0.215, 0.61, 0.355, 1)' }
|
12
|
+
];
|
@@ -0,0 +1,12 @@
|
|
1
|
+
export const bounceInLeft = [
|
2
|
+
{ offset: 0, opacity: '0', transform: 'translate3d(-3000px, 0, 0) scaleX(3)' },
|
3
|
+
{ offset: 0, easing: 'cubic-bezier(0.215, 0.61, 0.355, 1)' },
|
4
|
+
{ offset: 0.6, opacity: '1', transform: 'translate3d(25px, 0, 0) scaleX(1)' },
|
5
|
+
{ offset: 0.6, easing: 'cubic-bezier(0.215, 0.61, 0.355, 1)' },
|
6
|
+
{ offset: 0.75, transform: 'translate3d(-10px, 0, 0) scaleX(0.98)' },
|
7
|
+
{ offset: 0.75, easing: 'cubic-bezier(0.215, 0.61, 0.355, 1)' },
|
8
|
+
{ offset: 0.9, transform: 'translate3d(5px, 0, 0) scaleX(0.995)' },
|
9
|
+
{ offset: 0.9, easing: 'cubic-bezier(0.215, 0.61, 0.355, 1)' },
|
10
|
+
{ offset: 1, transform: 'translate3d(0, 0, 0)' },
|
11
|
+
{ offset: 1, easing: 'cubic-bezier(0.215, 0.61, 0.355, 1)' }
|
12
|
+
];
|
@@ -0,0 +1,12 @@
|
|
1
|
+
export const bounceInRight = [
|
2
|
+
{ offset: 0, opacity: '0', transform: 'translate3d(3000px, 0, 0) scaleX(3)' },
|
3
|
+
{ offset: 0, easing: 'cubic-bezier(0.215, 0.61, 0.355, 1)' },
|
4
|
+
{ offset: 0.6, opacity: '1', transform: 'translate3d(-25px, 0, 0) scaleX(1)' },
|
5
|
+
{ offset: 0.6, easing: 'cubic-bezier(0.215, 0.61, 0.355, 1)' },
|
6
|
+
{ offset: 0.75, transform: 'translate3d(10px, 0, 0) scaleX(0.98)' },
|
7
|
+
{ offset: 0.75, easing: 'cubic-bezier(0.215, 0.61, 0.355, 1)' },
|
8
|
+
{ offset: 0.9, transform: 'translate3d(-5px, 0, 0) scaleX(0.995)' },
|
9
|
+
{ offset: 0.9, easing: 'cubic-bezier(0.215, 0.61, 0.355, 1)' },
|
10
|
+
{ offset: 1, transform: 'translate3d(0, 0, 0)' },
|
11
|
+
{ offset: 1, easing: 'cubic-bezier(0.215, 0.61, 0.355, 1)' }
|
12
|
+
];
|
@@ -0,0 +1,12 @@
|
|
1
|
+
export const bounceInUp = [
|
2
|
+
{ offset: 0, opacity: '0', transform: 'translate3d(0, 3000px, 0) scaleY(5)' },
|
3
|
+
{ offset: 0, easing: 'cubic-bezier(0.215, 0.61, 0.355, 1)' },
|
4
|
+
{ offset: 0.6, opacity: '1', transform: 'translate3d(0, -20px, 0) scaleY(0.9)' },
|
5
|
+
{ offset: 0.6, easing: 'cubic-bezier(0.215, 0.61, 0.355, 1)' },
|
6
|
+
{ offset: 0.75, transform: 'translate3d(0, 10px, 0) scaleY(0.95)' },
|
7
|
+
{ offset: 0.75, easing: 'cubic-bezier(0.215, 0.61, 0.355, 1)' },
|
8
|
+
{ offset: 0.9, transform: 'translate3d(0, -5px, 0) scaleY(0.985)' },
|
9
|
+
{ offset: 0.9, easing: 'cubic-bezier(0.215, 0.61, 0.355, 1)' },
|
10
|
+
{ offset: 1, transform: 'translate3d(0, 0, 0)' },
|
11
|
+
{ offset: 1, easing: 'cubic-bezier(0.215, 0.61, 0.355, 1)' }
|
12
|
+
];
|
@@ -0,0 +1,6 @@
|
|
1
|
+
export const bounceOut = [
|
2
|
+
{ offset: 0.2, transform: 'scale3d(0.9, 0.9, 0.9)' },
|
3
|
+
{ offset: 0.5, opacity: '1', transform: 'scale3d(1.1, 1.1, 1.1)' },
|
4
|
+
{ offset: 0.55, opacity: '1', transform: 'scale3d(1.1, 1.1, 1.1)' },
|
5
|
+
{ offset: 1, opacity: '0', transform: 'scale3d(0.3, 0.3, 0.3)' }
|
6
|
+
];
|
@@ -0,0 +1,6 @@
|
|
1
|
+
export const bounceOutDown = [
|
2
|
+
{ offset: 0.2, transform: 'translate3d(0, 10px, 0) scaleY(0.985)' },
|
3
|
+
{ offset: 0.4, opacity: '1', transform: 'translate3d(0, -20px, 0) scaleY(0.9)' },
|
4
|
+
{ offset: 0.45, opacity: '1', transform: 'translate3d(0, -20px, 0) scaleY(0.9)' },
|
5
|
+
{ offset: 1, opacity: '0', transform: 'translate3d(0, 2000px, 0) scaleY(3)' }
|
6
|
+
];
|
@@ -0,0 +1,6 @@
|
|
1
|
+
export const bounceOutUp = [
|
2
|
+
{ offset: 0.2, transform: 'translate3d(0, -10px, 0) scaleY(0.985)' },
|
3
|
+
{ offset: 0.4, opacity: '1', transform: 'translate3d(0, 20px, 0) scaleY(0.9)' },
|
4
|
+
{ offset: 0.45, opacity: '1', transform: 'translate3d(0, 20px, 0) scaleY(0.9)' },
|
5
|
+
{ offset: 1, opacity: '0', transform: 'translate3d(0, -2000px, 0) scaleY(3)' }
|
6
|
+
];
|
@@ -0,0 +1,31 @@
|
|
1
|
+
export const easings = {
|
2
|
+
linear: 'linear',
|
3
|
+
ease: 'ease',
|
4
|
+
easeIn: 'ease-in',
|
5
|
+
easeOut: 'ease-out',
|
6
|
+
easeInOut: 'ease-in-out',
|
7
|
+
easeInSine: 'cubic-bezier(0.47, 0, 0.745, 0.715)',
|
8
|
+
easeOutSine: 'cubic-bezier(0.39, 0.575, 0.565, 1)',
|
9
|
+
easeInOutSine: 'cubic-bezier(0.445, 0.05, 0.55, 0.95)',
|
10
|
+
easeInQuad: 'cubic-bezier(0.55, 0.085, 0.68, 0.53)',
|
11
|
+
easeOutQuad: 'cubic-bezier(0.25, 0.46, 0.45, 0.94)',
|
12
|
+
easeInOutQuad: 'cubic-bezier(0.455, 0.03, 0.515, 0.955)',
|
13
|
+
easeInCubic: 'cubic-bezier(0.55, 0.055, 0.675, 0.19)',
|
14
|
+
easeOutCubic: 'cubic-bezier(0.215, 0.61, 0.355, 1)',
|
15
|
+
easeInOutCubic: 'cubic-bezier(0.645, 0.045, 0.355, 1)',
|
16
|
+
easeInQuart: 'cubic-bezier(0.895, 0.03, 0.685, 0.22)',
|
17
|
+
easeOutQuart: 'cubic-bezier(0.165, 0.84, 0.44, 1)',
|
18
|
+
easeInOutQuart: 'cubic-bezier(0.77, 0, 0.175, 1)',
|
19
|
+
easeInQuint: 'cubic-bezier(0.755, 0.05, 0.855, 0.06)',
|
20
|
+
easeOutQuint: 'cubic-bezier(0.23, 1, 0.32, 1)',
|
21
|
+
easeInOutQuint: 'cubic-bezier(0.86, 0, 0.07, 1)',
|
22
|
+
easeInExpo: 'cubic-bezier(0.95, 0.05, 0.795, 0.035)',
|
23
|
+
easeOutExpo: 'cubic-bezier(0.19, 1, 0.22, 1)',
|
24
|
+
easeInOutExpo: 'cubic-bezier(1, 0, 0, 1)',
|
25
|
+
easeInCirc: 'cubic-bezier(0.6, 0.04, 0.98, 0.335)',
|
26
|
+
easeOutCirc: 'cubic-bezier(0.075, 0.82, 0.165, 1)',
|
27
|
+
easeInOutCirc: 'cubic-bezier(0.785, 0.135, 0.15, 0.86)',
|
28
|
+
easeInBack: 'cubic-bezier(0.6, -0.28, 0.735, 0.045)',
|
29
|
+
easeOutBack: 'cubic-bezier(0.175, 0.885, 0.32, 1.275)',
|
30
|
+
easeInOutBack: 'cubic-bezier(0.68, -0.55, 0.265, 1.55)'
|
31
|
+
};
|