Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
react transitions
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
You can’t perform that action at this time.