54 |
55 |
56 | ## Transitions
57 |
58 | {:.split-view\_\_title}
59 |
60 | | ✅ | transition _ |
61 | | ✅ | transition-delay |
62 | | ✅ | transition-duration |
63 | | ✅ | transition-property _ |
64 | | ✅ | transition-timing-function |
65 | {:.feature-table}
66 |
67 |
68 |
69 |
70 | ```jsx
71 | const ButtonWithTransition = cssta(Animated.View)`
72 | background-color: blue;
73 | color: white;
74 |
75 | transition:
76 | background-color 0.5s ease-in,
77 | color 0.7s ease-in
78 |
79 | &[@disabled] {
80 | background-color: gray;
81 | color: light-gray;
82 | }
83 | `;
84 | ```
85 |
86 | {:.split-view\_\_code}
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 | ## Animations
95 |
96 | {:.split-view\_\_title}
97 |
98 | | ✅ | animation |
99 | | ✅ | animation-delay |
100 | | ❌ | animation-direction |
101 | | ✅ | animation-duration |
102 | | ❌ | animation-fill-mode ** |
103 | | ✅ | animation-iteration-count \*** |
104 | | ❌ | animation-play-state |
105 | | ✅ | animation-name \*\*\*\* |
106 | | ✅ | animation-timing-function |
107 | | ✅ | @keyframes |
108 | {:.feature-table}
109 |
110 |
111 |
112 |
113 | ```jsx
114 | const ButtonWithKeyframes = cssta(Animated.View)`
115 | animation: fade-in 1s ease-in;
116 |
117 | @keyframes fade-in {
118 | 0% {
119 | opacity: 0;
120 | }
121 |
122 | 100% {
123 | opacity: 1;
124 | }
125 | }
126 | `;
127 | ```
128 |
129 | {:.split-view\_\_code}
130 |
131 |
132 |
133 |
134 | ### Notes
135 |
136 | You can animate multiple transforms, but the nodes of the transform must not change. I.e, you can animate `transform: scaleX(1) rotateX(0deg)` to `transform: scaleX(5) rotateX(30deg)`, but you cannot then transform to `transform: scaleY(5) skew(30deg)`.
137 |
138 |