Here is the code in question...
local marquee2 = fe.add_artwork( "wheel", flx*0.150, 5, flw*0.700, flh*0.200 );
marquee2.index_offset = -1
local marquee2_scale_cfg = {
when = function( anim ) { if ( anim.transition.ttype == Transition.FromOldSelection && anim.transition.var == -1 ) return true; return false; },
property = "scale",
start = 1.0,
end = 0.01,
time = 0500,
tween = Tween.Linear,
}
local marquee2_move_cfg = {
when = function( anim ) { if ( anim.transition.ttype == Transition.FromOldSelection && anim.transition.var == -1 ) return true; return false; },
property = "y",
start = fly*0.010,
end = fly*0.140,
time = 0500 ,
}
local marquee3 = fe.add_artwork( "wheel", flx*0.150, 5, flw*0.700, flh*0.200 );
marquee3.index_offset = 1
local marquee3_scale_cfg = {
when = function( anim ) { if ( anim.transition.ttype == Transition.FromOldSelection && anim.transition.var == 1 ) return true; return false; },
property = "scale",
start = 1.0,
end = 0.01,
time = 0500,
tween = Tween.Linear,
}
local marquee3_move_cfg = {
when = function( anim ) { if ( anim.transition.ttype == Transition.FromOldSelection && anim.transition.var == 1 ) return true; return false; },
property = "y",
start = fly*0.010,
end = fly*0.140,
time = 0500 ,
}
local marquee = fe.add_artwork( "wheel", flx*0.150, fly*-0.2, flw*0.700, flh*0.200 );
local marquee_move_cfg = {
when =Transition.ToNewSelection,
property = "y",
start = fly*-0.2,
end = fly*0.010,
time = 500 ,
tween = Tween.Expo,
}
animation.add( PropertyAnimation( marquee, marquee_move_cfg ) );
animation.add( PropertyAnimation( marquee2, marquee2_scale_cfg ) );
animation.add( PropertyAnimation( marquee2, marquee2_move_cfg ) );
animation.add( PropertyAnimation( marquee3, marquee3_scale_cfg ) );
animation.add( PropertyAnimation( marquee3, marquee3_move_cfg ) );