Open SanderSpies opened 9 years ago
For 60fps animations it's wiser to skip React's rendering pipeline, and directly modify the style attribute of elements.
render() { return Animation.render(this, () => { // standard React stuff }); }
Animation.render calls the given function when:
Animation.render
Animation.render won't call the function and directly modify the DOM element style prop when:
Need to solve:
Something like this could help for animations:
ref={Animation.animateWith('fooAnimation', 'barBlock')}
Although the idea looks good, not sure about the syntax though.
For 60fps animations it's wiser to skip React's rendering pipeline, and directly modify the style attribute of elements.
How should it work
Animation.render
calls the given function when:Animation.render
won't call the function and directly modify the DOM element style prop when:Need to solve: