Kodi Community Forum

Full Version: Problem fading from 0 to 100 when using a Hidden anim. triggered by Container.OnNext
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm working on a coverflow view that has an element that fades from 0 to 100% opacity when I move to the next item. The problem is that it flashes at 100% opacity for one frame first then goes to zero and starts the animation. Is there a way to stop the texture from flashing for that one frame? Everything else works perfectly.

This is the code I've ended up with:
<control type="group">
<animation type="Hidden" reversible="false">
<effect type="fade" start="0" end="100" time="250" />
<effect type="rotatey" center="470" start="0" end="-60" time="250" tween="quadratic" easing="out" />
<control type="image">    
  <texture flipx="true" diffuse="movieposter_mask.png" scalediffuse="false">poster_glass.png</texture>
yes, you need to add
to the image control
Wow. I don't understand it but it works. Thanks Ronie.
the Container.OnNext condition is true for one frame, so your image is visible during that period.

the next frame, Container.OnNext changes to false again and that's when your 'hidden' animation is triggered.

hope that makes sense ;-)
It all makes sense now. Thanks for the explanation.