For Instance,
Home page
<div id="box1">Box 1</div>
<div id="box2">Box 2</div>
<div id="box3">Box 3</div>
inner page
<!--<div id="box1">Box 1</div> -->
<div id="box2">Box 2</div>
<div id="box3">Box 3</div>
JS: (Common Javascript for home page and inner page.)
new TimelineMax({repeat:0}).to($('#box1'), 0.3, {css:{top:0, alpha:1,rotation:360}})
new TimelineMax({repeat:0}).to($('#box2'), 0.3, {css:{top:0, alpha:1,rotation:360}})
new TimelineMax({repeat:0}).to($('#box3'), 0.3, {css:{top:0, alpha:1,rotation:360}})
In Home page above code works fine..But for inner pages.. If i delete/comment #box1 the other #box2 and #box3 animation is not working. How can I ignore #box1 animation and continue with another animations.