Kodi Community Forum

Full Version: Reversing a tweened animation
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Code:
<animation effect="slide" time="600" tween="cubic" easing="out" end="0,100" condition="Control.HasFocus(6000)">Conditional</animation>

I want this animation to ease out at the end, and to do the same thing when it's reversed. Kodi is able to reverse the animation when moving back from control id 6000, but the 'out' tween becomes an 'in' tween in the process, which looks wrong. How can I avoid this?
Would this work?

Code:
<animation effect="slide" time="600" tween="cubic" easing="out" end="0,100" condition="Control.HasFocus(6000)" reversible="false">Conditional</animation>
<animation effect="slide" time="600" tween="cubic" easing="out" start="0,100" end="0,0" condition="!Control.HasFocus(6000)" reversible="false">Conditional</animation>
Works perfectly. Cheers!