196
Themes / Re: Need some help with the animate module
« on: May 02, 2016, 01:10:25 AM »FadeArt is its own thing, which I think you know. If you use the animation module, you make animation "configs" to handle what you want to animate. Something like this should be close to what you want:Code: [Select]fe.load_module("animate");
local surface = fe.add_artwork("marquee", 50, 50, 400, 150);
local anim_leave = {
when = Transition.ToNewSelection, //when the animation will be triggered
time = 500, //how long the animation runs for
property = "x", //which property to animation
start = 50, //start value
end = -450, //end value
wait = true //wait the length of the animation before continuing (blocks UI, but will not change artwork until it finishes)
}
local anim_enter = {
when = Transition.ToNewSelection,
time = 500,
property = "x",
start = -450,
end = 50,
delay = 1000 //wait X ms to run this one
}
animation.add( PropertyAnimation( surface, anim_leave ) );
animation.add( PropertyAnimation( surface, anim_enter ) );
Thank you so much!! That worked
