Kodi Community Forum

Full Version: scrolling down a tall image or infographic
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

How do I build an image control so that it will slowly scroll from top to bottom.
- I do not know how tall the image will be
- does not need to start zoomed in at the top (I tried it and the rest of the image comes out black)

It is for basically displaying a tall image like this http://i.imgur.com/Qix5ASV.jpg
If you know the dimensions you can add a slide animation.
just for testing, I put "0,-2000" in "genre".

I verified it by trying it as a <label>$INFO[Container(53).ListItem.Genre]</label> on a button control.


but can't get it to work if put inside the end= with or without quotes. It acts as if there isn't anything in end=

Code:
                <control type="image" id="203">
                    <visible>Control.HasFocus(103)</visible>
                    <aspectratio aligny="center">keep</aspectratio>
                    <texture>$INFO[Container(53).ListItem.Art(poster)]</texture>
                    <animation type="Visible" reversible="true">
                        <effect type="zoom" end="150" center=0 time="1800" />
                        <effect type="slide" end="$INFO[Container(53).ListItem.Genre]"  delay="1800" time="1800" />
                    </animation>
                </control>

tips?
"end=" has to be a integer value.
still doesn't work with 1998 on "year"

Code:
<effect type="slide" end=$INFO[Container(53).ListItem.year]  delay="1800" time="1800" />

I think you can't use $INFO[] as an attribute
As I said, has to be a integer value. $INFO and $VAR won't work.
But you can use conditional includes or params (http://kodi.wiki/view/Skinning_Manual#Us...n_includes)