react-native-animatable icon indicating copy to clipboard operation
react-native-animatable copied to clipboard

Variable Animation Amount

Open lightninglu10 opened this issue 5 years ago • 1 comments

Hey guys, when we use .animate('CUSTOM_ANIMATION'), is there anyway to pass variables?

For example, if we have:

const CUSTOM_ANIMATION = {
  from: {
    opacity: .05,
    transform: [{translateY: 10}]
  },
  to: {
    opacity: 1,
    transform: [{translateY: 0}]
  }
}

can we have the translateY be variable? Or would we need to create different animations for each of those?

lightninglu10 avatar Apr 19 '19 05:04 lightninglu10

https://github.com/oblador/react-native-animatable/issues/123

kevando avatar Aug 04 '19 23:08 kevando