tw-animations 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +50 -0
- package/package.json +44 -0
- package/src/animations/attention-seekers.css +496 -0
- package/src/animations/back-entrances.css +77 -0
- package/src/animations/back-exits.css +77 -0
- package/src/animations/bouncing-entrances.css +126 -0
- package/src/animations/bouncing-exits.css +90 -0
- package/src/animations/dashing.css +71 -0
- package/src/animations/default.css +17 -0
- package/src/animations/expanding.css +145 -0
- package/src/animations/fading-entrances.css +74 -0
- package/src/animations/fading-exits.css +75 -0
- package/src/animations/flippers.css +132 -0
- package/src/animations/rotating-entrances.css +100 -0
- package/src/animations/rotating-exits.css +95 -0
- package/src/animations/sliding-entrances.css +66 -0
- package/src/animations/sliding-exits.css +67 -0
- package/src/animations/specials.css +123 -0
- package/src/animations/zooming-entrances.css +75 -0
- package/src/animations/zooming-exits.css +78 -0
- package/src/index.css +33 -0
- package/src/scroll/ranges.css +82 -0
- package/src/scroll/timelines.css +46 -0
- package/src/utilities/composition.css +11 -0
- package/src/utilities/delay.css +9 -0
- package/src/utilities/direction.css +15 -0
- package/src/utilities/duration.css +9 -0
- package/src/utilities/fill-mode.css +15 -0
- package/src/utilities/iteration-count.css +19 -0
- package/src/utilities/play-state.css +15 -0
- package/src/utilities/timing-function.css +23 -0
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
@theme default {
|
|
2
|
+
--animate-zoom-out: zoom-out var(--default-animation-duration, 1s)
|
|
3
|
+
var(--default-animation-timing-function, ease-out)
|
|
4
|
+
var(--default-animation-delay, 0s) both;
|
|
5
|
+
|
|
6
|
+
--animate-zoom-out-down: zoom-out-down var(--default-animation-duration, 1s)
|
|
7
|
+
var(--default-animation-timing-function, ease-out)
|
|
8
|
+
var(--default-animation-delay, 0s) both;
|
|
9
|
+
|
|
10
|
+
--animate-zoom-out-up: zoom-out-up var(--default-animation-duration, 1s)
|
|
11
|
+
var(--default-animation-timing-function, ease-out)
|
|
12
|
+
var(--default-animation-delay, 0s) both;
|
|
13
|
+
|
|
14
|
+
--animate-zoom-out-start: zoom-out-start var(--default-animation-duration, 1s)
|
|
15
|
+
var(--default-animation-timing-function, ease-out)
|
|
16
|
+
var(--default-animation-delay, 0s) both;
|
|
17
|
+
|
|
18
|
+
--animate-zoom-out-end: zoom-out-end var(--default-animation-duration, 1s)
|
|
19
|
+
var(--default-animation-timing-function, ease-out)
|
|
20
|
+
var(--default-animation-delay, 0s) both;
|
|
21
|
+
|
|
22
|
+
@keyframes zoom-out {
|
|
23
|
+
from {
|
|
24
|
+
opacity: 1;
|
|
25
|
+
}
|
|
26
|
+
50% {
|
|
27
|
+
opacity: 0;
|
|
28
|
+
transform: scale3d(0.3, 0.3, 0.3);
|
|
29
|
+
}
|
|
30
|
+
to {
|
|
31
|
+
opacity: 0;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
@keyframes zoom-out-down {
|
|
36
|
+
40% {
|
|
37
|
+
opacity: 1;
|
|
38
|
+
transform: scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0);
|
|
39
|
+
}
|
|
40
|
+
to {
|
|
41
|
+
opacity: 0;
|
|
42
|
+
transform: scale3d(0.1, 0.1, 0.1) translate3d(0, 2000px, 0);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
@keyframes zoom-out-up {
|
|
47
|
+
40% {
|
|
48
|
+
opacity: 1;
|
|
49
|
+
transform: scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0);
|
|
50
|
+
}
|
|
51
|
+
to {
|
|
52
|
+
opacity: 0;
|
|
53
|
+
transform: scale3d(0.1, 0.1, 0.1) translate3d(0, -2000px, 0);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
@keyframes zoom-out-start {
|
|
58
|
+
40% {
|
|
59
|
+
opacity: 1;
|
|
60
|
+
transform: scale3d(0.475, 0.475, 0.475) translate3d(42px, 0, 0);
|
|
61
|
+
}
|
|
62
|
+
to {
|
|
63
|
+
opacity: 0;
|
|
64
|
+
transform: scale(0.1) translate3d(-2000px, 0, 0);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
@keyframes zoom-out-end {
|
|
69
|
+
40% {
|
|
70
|
+
opacity: 1;
|
|
71
|
+
transform: scale3d(0.475, 0.475, 0.475) translate3d(-42px, 0, 0);
|
|
72
|
+
}
|
|
73
|
+
to {
|
|
74
|
+
opacity: 0;
|
|
75
|
+
transform: scale(0.1) translate3d(2000px, 0, 0);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
package/src/index.css
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/* Animations */
|
|
2
|
+
@import "./animations/attention-seekers.css";
|
|
3
|
+
@import "./animations/back-entrances.css";
|
|
4
|
+
@import "./animations/back-exits.css";
|
|
5
|
+
@import "./animations/bouncing-entrances.css";
|
|
6
|
+
@import "./animations/bouncing-exits.css";
|
|
7
|
+
@import "./animations/dashing.css";
|
|
8
|
+
@import "./animations/default.css";
|
|
9
|
+
@import "./animations/expanding.css";
|
|
10
|
+
@import "./animations/fading-entrances.css";
|
|
11
|
+
@import "./animations/fading-exits.css";
|
|
12
|
+
@import "./animations/flippers.css";
|
|
13
|
+
@import "./animations/rotating-entrances.css";
|
|
14
|
+
@import "./animations/rotating-exits.css";
|
|
15
|
+
@import "./animations/sliding-entrances.css";
|
|
16
|
+
@import "./animations/sliding-exits.css";
|
|
17
|
+
@import "./animations/specials.css";
|
|
18
|
+
@import "./animations/zooming-entrances.css";
|
|
19
|
+
@import "./animations/zooming-exits.css";
|
|
20
|
+
|
|
21
|
+
/* Scroll Animations (NEW in v2.0) */
|
|
22
|
+
@import "./scroll/timelines.css";
|
|
23
|
+
@import "./scroll/ranges.css";
|
|
24
|
+
|
|
25
|
+
/* Animation Control Utilities */
|
|
26
|
+
@import "./utilities/composition.css";
|
|
27
|
+
@import "./utilities/delay.css";
|
|
28
|
+
@import "./utilities/direction.css";
|
|
29
|
+
@import "./utilities/duration.css";
|
|
30
|
+
@import "./utilities/fill-mode.css";
|
|
31
|
+
@import "./utilities/iteration-count.css";
|
|
32
|
+
@import "./utilities/play-state.css";
|
|
33
|
+
@import "./utilities/timing-function.css";
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
/* Animation Range - Basic Keywords */
|
|
2
|
+
@utility animate-range-normal {
|
|
3
|
+
animation-range: normal;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
@utility animate-range-cover {
|
|
7
|
+
animation-range: cover;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
@utility animate-range-contain {
|
|
11
|
+
animation-range: contain;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@utility animate-range-entry {
|
|
15
|
+
animation-range: entry;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
@utility animate-range-exit {
|
|
19
|
+
animation-range: exit;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
@utility animate-range-entry-crossing {
|
|
23
|
+
animation-range: entry-crossing;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@utility animate-range-exit-crossing {
|
|
27
|
+
animation-range: exit-crossing;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/* Preset Animation Ranges */
|
|
31
|
+
@utility animate-range-gradual {
|
|
32
|
+
animation-range: 10% 90%;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
@utility animate-range-moderate {
|
|
36
|
+
animation-range: 20% 80%;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
@utility animate-range-brisk {
|
|
40
|
+
animation-range: 30% 70%;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
@utility animate-range-rapid {
|
|
44
|
+
animation-range: 40% 60%;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/* Specific Entry Ranges */
|
|
48
|
+
@utility animate-range-entry-start {
|
|
49
|
+
animation-range: entry 0%;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
@utility animate-range-entry-end {
|
|
53
|
+
animation-range: entry 100%;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/* Specific Exit Ranges */
|
|
57
|
+
@utility animate-range-exit-start {
|
|
58
|
+
animation-range: exit 0%;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
@utility animate-range-exit-end {
|
|
62
|
+
animation-range: exit 100%;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/* Arbitrary values for custom animation ranges */
|
|
66
|
+
/* Examples:
|
|
67
|
+
animate-range-[entry_0%_cover_50%]
|
|
68
|
+
animate-range-[entry_10%_contain_25%]
|
|
69
|
+
animate-range-[cover_25%_cover_75%]
|
|
70
|
+
*/
|
|
71
|
+
@utility animate-range-* {
|
|
72
|
+
animation-range: --value([*]);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/* Animation Range Start/End - Separate controls */
|
|
76
|
+
@utility animate-range-start-* {
|
|
77
|
+
animation-range-start: --value([*]);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
@utility animate-range-end-* {
|
|
81
|
+
animation-range-end: --value([*]);
|
|
82
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/* View Timelines */
|
|
2
|
+
@utility timeline-view {
|
|
3
|
+
animation-timeline: view();
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
@utility timeline-view-x {
|
|
7
|
+
animation-timeline: view(x);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
@utility timeline-view-y {
|
|
11
|
+
animation-timeline: view(y);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@utility timeline-view-block {
|
|
15
|
+
animation-timeline: view(block);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
@utility timeline-view-inline {
|
|
19
|
+
animation-timeline: view(inline);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/* Scroll Timelines */
|
|
23
|
+
@utility timeline-scroll {
|
|
24
|
+
animation-timeline: scroll();
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
@utility timeline-scroll-x {
|
|
28
|
+
animation-timeline: scroll(x);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@utility timeline-scroll-y {
|
|
32
|
+
animation-timeline: scroll(y);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
@utility timeline-scroll-block {
|
|
36
|
+
animation-timeline: scroll(block);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
@utility timeline-scroll-inline {
|
|
40
|
+
animation-timeline: scroll(inline);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/* Arbitrary values for complex timeline definitions */
|
|
44
|
+
@utility timeline-* {
|
|
45
|
+
animation-timeline: --value([*]);
|
|
46
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
@utility animate-normal {
|
|
2
|
+
animation-direction: normal;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
@utility animate-reverse {
|
|
6
|
+
animation-direction: reverse;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
@utility animate-alternate {
|
|
10
|
+
animation-direction: alternate;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
@utility animate-alternate-reverse {
|
|
14
|
+
animation-direction: alternate-reverse;
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
@utility animate-fill-none {
|
|
2
|
+
animation-fill-mode: normal;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
@utility animate-fill-forwards {
|
|
6
|
+
animation-fill-mode: forwards;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
@utility animate-fill-backwards {
|
|
10
|
+
animation-fill-mode: backwards;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
@utility animate-fill-both {
|
|
14
|
+
animation-fill-mode: both;
|
|
15
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
@utility animate-infinite {
|
|
2
|
+
animation-iteration-count: infinite;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
@utility animate-once {
|
|
6
|
+
animation-iteration-count: 1;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
@utility animate-twice {
|
|
10
|
+
animation-iteration-count: 2;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
@utility animate-thrice {
|
|
14
|
+
animation-iteration-count: 3;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
@utility animate-iteration-* {
|
|
18
|
+
animation-iteration-count: --value(integer, [integer]);
|
|
19
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
@utility animate-run {
|
|
2
|
+
animation-play-state: running;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
@utility animate-play {
|
|
6
|
+
animation-play-state: running;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
@utility animate-stop {
|
|
10
|
+
animation-play-state: paused;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
@utility animate-pause {
|
|
14
|
+
animation-play-state: paused;
|
|
15
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
@utility animate-ease {
|
|
2
|
+
animation-timing-function: ease;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
@utility animate-ease-linear {
|
|
6
|
+
animation-timing-function: linear;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
@utility animate-ease-in {
|
|
10
|
+
animation-timing-function: cubic-bezier(0.4, 0, 1, 1);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
@utility animate-ease-out {
|
|
14
|
+
animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
@utility animate-ease-in-out {
|
|
18
|
+
animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@utility animate-ease-* {
|
|
22
|
+
animation-timing-function: --value([ *]);
|
|
23
|
+
}
|