Kodi Community Forum
Get smooth animation in Movie view - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Skins Support (https://forum.kodi.tv/forumdisplay.php?fid=67)
+--- Thread: Get smooth animation in Movie view (/showthread.php?tid=134247)



Get smooth animation in Movie view - mikebzh44 - 2012-06-18

As I'm using Glass skin, I'm trying to make a custom view for browsing my movies.

I try to mod an existing custom view (Glass : Resolution Case) which is also based on an original view from another skin.

By default, movie case automatically open :

Image

But it's easy to set an option to keep case closed :

Image

I'm looking for opening case on demand. In Glass Resolution Case, Fmronan add a hidden button with <ondown> in movie list. So when user press down arrow, case open. It work but (there is alway a BUT) when going left or right to navigate through movies animations are not smooth, case shrink roughly.

To get smooth animations in navigation with auto open option on, I use zoom and rotate

Code:
<animation type="focus" reversible="false">
    <effect type="zoom" start="34,166,197,250" end="0,80,262,332" time="250"/>
    <effect type="rotatey" delay="500" center="34" start="0" end="70" time="1000" tween="quadratic" easing="out"/>
</animation>
<animation type="UnFocus" reversible="true">
    <effect type="zoom" start="0,80,262,332" end="34,166,197,250" time="250" reversible="true"/>
    <effect type="rotatey" center="34" start="70" end="0" time="1000" reversible="true"/>
</animation>

Otherwise I use only zoom :

Code:
<animation type="focus" reversible="false">
    <effect type="zoom" start="34,166,197,250" end="0,80,262,332" time="250"/>
</animation>
<animation type="UnFocus" reversible="true">
    <effect type="zoom" start="0,80,262,332" end="34,166,197,250" time="250" reversible="true"/>
</animation>

How can I keep smooth animation and on demand case open by pressing down arrow ?

I think I need something like that :
- focus on movie -> animation zoom in
- down arrow -> no zoom out animation + rotate animation for open on movie
- up arrow -> back to movie with focus but no zoom in + rotate animation for close
- left or right arrow -> zoom out and zoom in animations

For those who want to try custom views in glass :

- download Glass Medium Resolution Case : http://passion-xbmc.org/glass/glass-1-0-0/?action=dlattach;attach=7563
- install Passion-XBMC repository : http://passion-xbmc.org/addons/?Page=View&ID=repository.passion.xbmc.org
- install Glass Skin
- in Glass, after Skin Init, go to System > Views
- install Glass Resolution Case
- then System > Skin > Views > Install view from ZIP and install Glass Medium Resolution Case downloaded before
- restart XBMC
- System > Skin > Views and enable Glass Resolution Case and Glass Medium Res Case

Hope that you will find out what is wrong.

Thanks.