Struggling to get my head round 'rotating' and 'scaling' in React Motion v4 and cant seem to find much about how to do it online. Its easy to change a simple css property along with a simple state change like below:
<Motion
defaultStyle={{opacity: 0}}
style={{opacity: spring(this.state.isActive ? 1 : 0, {stiffness: 200, damping: 12})}}>
{style =>
<div style={{opacity: style.opacity}} className="action-panel">
<div id="action-content" className="action-panel-content"></div>
</div>
}
</Motion>
However how do i do the above with more complex css properties such as 'transform: rotate(90deg)' for example ?
Finally if i want to have more complex state logic, such as animation that occurs on rollover and rollout and if various states are true or false where's best to do that ? Prior to using React Motion I was updating the inline styles of the element based on its state and some conditionals, I'm not really sure how to do this now just using React Motion. Your thoughts would be welcomed! :D
t xx