Skip to content

Instantly share code, notes, and snippets.

@mathisonian
Created July 6, 2015 15:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mathisonian/5de918691f7614ecce1c to your computer and use it in GitHub Desktop.
Save mathisonian/5de918691f7614ecce1c to your computer and use it in GitHub Desktop.
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