Created
July 6, 2015 15:37
-
-
Save mathisonian/5de918691f7614ecce1c to your computer and use it in GitHub Desktop.
react transitions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var TransitioningClass = React.createClass( | |
transitions: ['myVarA', 'myVarB'] // uses d3 to guess interpolation type | |
}); | |
var TransitioningClass = React.createClass( | |
transitions: { | |
myVarA: 'color' | |
myVarB: 'number' | |
} | |
}); | |
var TransitioningClass = React.createClass( | |
transitions: { | |
myVarA: { | |
delay: 100, | |
duration: 400, | |
interpolator: customInterpolatorFunction, | |
type: 'color' // define either a type or a custom interpolator | |
} | |
} | |
}); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment