Kodi Community Forum

Full Version: fade in
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
HI

This is the last image in a slide view im working on. When you press right the image just pops into apperance


<control type="image">
<posx>1089</posx>
<posy>122</posy>
<width>77</width>
<height>106</height>
<texture diffuse="diffuse.png" background="true">$INFO[Container(596).ListItem(3).Icon]</texture>
<animation reversible="false" effect="zoom" start="1089,122,77,106" end="993,114,83,116" time="250">Hidden</animation>
<visible>Container(596).OnNext</visible>
</control>

<control type="image">
<posx>1085</posx>
<posy>118</posy>
<width>85</width>
<height>114</height>
<texture>border.png</texture>
<animation reversible="false" effect="zoom" start="1085,118,85,114" end="989,110,91,123" time="250">Hidden</animation>
<visible>Container(596).OnNext + !stringcompare(ListItem(3).Label,..)</visible>
</control>

<control type="image">
<posx>1089</posx>
<posy>229</posy>
<width>77</width>
<height>106</height>
<aspectratio>stretch</aspectratio>
<texture fallback="DefaultVideo.png" background="true" flipy="true" diffuse="diffuse2.png" >$INFO[ListItem(3).Thumb]</texture>
<animation reversible="false" effect="zoom" start="1089,229,77,106" end="993,230,83,116" time="250">Hidden</animation>
<visible>Container(596).OnNext</visible>
</control>

<control type="image">
<posx>1089</posx>
<posy>229</posy>
<width>77</width>
<height>106</height>
<aspectratio>stretch</aspectratio>
<texture fallback="DefaultVideo.png" background="true" flipy="true" diffuse="diffuse_mirror2.png" >diffuse.png</texture>
<visible>!stringcompare(ListItem.Label,..)</visible>
<animation reversible="false" effect="zoom" start="1089,229,77,106" end="993,230,83,116" time="250">Hidden</animation>
<visible>Container(596).OnNext</visible>
</control>

To make things look nice i wanted to fade the last images of the slide view out and in. Fading out works great fading in doesnt. To fade in i added a smaller image slide fade into the image above.This is what i did

<control type="group">
<posx>0</posx>
<visible>Container(596).OnNext</visible>
<animation effect="fade" start="-50" end="100" delay="50" time="250" reversible="false">Hidden</animation>
<animation effect="slide" end="-100,0" time="250" reversible="false">Hidden</animation>


<control type="image">
<posx>1185</posx>
<posy>122</posy>
<width>77</width>
<height>106</height>
<texture diffuse="diffuse.png" background="true">$INFO[Container(596).ListItem(4).Icon]</texture>
<animation effect="slide" end="-100,0" time="250" reversible="false">Hidden</animation>
<visible>Container(596).OnNext</visible>
</control>
</control>

It works with a few problems . When i press right the image pops up in full then fads in. only a few times then it fades in all the time. so it will pop then fade in for lets say 3 presses of right then it fades in smooth and nice. ( i havent dont the reflect thing fo the image above and left direction press also applies)


any help will be great thanks

Im not a skinner im just custom modding Transparency. i learn with trial and error. I hope this makes sense
Try using '50' and not '-50' as that's not a valid percentage.
tried that still the same