var controller superscrollorama triggerAtCenter true playoutAnimations

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
var controller = $.superscrollorama({
triggerAtCenter: true,
playoutAnimations: true
});
/* controller.addTween('.avia_image',
TweenMax.from(jQuery('.avia_image'), .5, {css:{opacity:0}}));*/
controller.addTween('.home #av_section_2',
TweenMax.from(jQuery('.home .avia-builder-el-27'),.8,
{css:{right:'500px'}, ease:Quad.easeInOut}), 600);
controller.addTween('.home #av_section_2',
TweenMax.from(jQuery('.home .avia-builder-el-29'),.8,
{css:{top:'500px'}, ease:Quad.easeInOut}), 600 );
controller.addTween('.home #av_section_2',
TweenMax.from(jQuery('.home .avia-builder-el-31'),.8,
{css:{left:'500px'}, ease:Quad.easeInOut}), 600);
if(jQuery(window).height() < 1230){
controller.addTween('.home #av_section_4',
TweenMax.from(jQuery('.home .avia-builder-el-37'),.8,
{css:{right:'800px'}, ease:Quad.easeInOut}), 700);
controller.addTween('.home #av_section_4',
TweenMax.from(jQuery('.home .avia-builder-el-39'),.8,
{css:{left:'800px'}, ease:Quad.easeInOut}), 700);
} else {
controller.addTween('.home #av_section_4',
TweenMax.from(jQuery('.home .avia-builder-el-37'),.8,
{css:{right:'800px'}, ease:Quad.easeInOut}), 200);
controller.addTween('.home #av_section_4',
TweenMax.from(jQuery('.home .avia-builder-el-39'),.8,
{css:{left:'800px'}, ease:Quad.easeInOut}), 200);
}