0
Answered

How to configure type of slide effect

Wouter van der Post 7 years ago in Applications / i3 Pro updated by Ilya Markov (expert) 7 years ago 4

Hello,

I'm trying to use JS to configure effects to use on show/hide of popups.

var slideEffect = IR.CreateEffect(IR.EFFECT_SLIDE); 
slideEffect.Group = 1000;
slideEffect.Delay = 0;
slideEffect.Duration = 400;
slideEffect.Tween = IR.TWEEN_SINE_IN_OUT;

But how can I define the 'type' in JS?


Image 18468


Using version 1.1.3

Answered

Hello

For EFFECT_SLIDE you should fill one more property "SlideType"

the value should be a number of

SLIDE_TYPE_LEFT - 0,

SLIDE_TYPE_RIGHT - 1,

SLIDE_TYPE_TOP - 2,

SLIDE_TYPE_BOTTOM - 3,

SLIDE_TYPE_CROP_LEFT - 4,

SLIDE_TYPE_CROP_RIGHT - 5,

SLIDE_TYPE_CROP_TOP - 6,

SLIDE_TYPE_CROP_BOTTOM - 7


Example

var slideEffect = IR.CreateEffect(IR.EFFECT_SLIDE);

slideEffect.Group = 1000;

slideEffect.Delay = 0;

slideEffect.Duration = 400;

slideEffect.Tween = IR.TWEEN_SINE_IN_OUT;

slideEffect.SlideType = 0;

Thanks for the information.

Why can't this be found in the documentation/wiki?

soon it will be avaliabe