File tree 1 file changed +27
-0
lines changed
1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -736,6 +736,32 @@ class AnimatedMultiplication extends AnimatedWithChildren {
736
736
}
737
737
}
738
738
739
+ class AnimatedDivison extends AnimatedWithChildren {
740
+ constructor ( a , b ) {
741
+ super ( ) ;
742
+ this . _a = a ;
743
+ this . _b = b ;
744
+ }
745
+
746
+ __getValue ( ) {
747
+ return this . _a . __getValue ( ) / this . _b . __getValue ( ) ;
748
+ }
749
+
750
+ interpolate ( config ) {
751
+ return new AnimatedInterpolation ( this , Interpolation . create ( config ) ) ;
752
+ }
753
+
754
+ __attach ( ) {
755
+ this . _a . __addChild ( this ) ;
756
+ this . _b . __addChild ( this ) ;
757
+ }
758
+
759
+ __detach ( ) {
760
+ this . _a . __removeChild ( this ) ;
761
+ this . _b . __removeChild ( this ) ;
762
+ }
763
+ }
764
+
739
765
class AnimatedTransform extends AnimatedWithChildren {
740
766
constructor ( transforms ) {
741
767
super ( ) ;
@@ -1187,6 +1213,7 @@ const AnimatedImplementation = {
1187
1213
spring,
1188
1214
add,
1189
1215
multiply,
1216
+ divide,
1190
1217
sequence,
1191
1218
parallel,
1192
1219
stagger,
You can’t perform that action at this time.
0 commit comments