HHF change start onload
Showing
5 changed files
with
16 additions
and
6 deletions
| ... | @@ -148,9 +148,10 @@ | ... | @@ -148,9 +148,10 @@ |
| 148 | 148 | ||
| 149 | <script> | 149 | <script> |
| 150 | 150 | ||
| 151 | var tl = new TimelineMax({repeat:1, repeatDelay:4}); | 151 | var tl; |
| 152 | 152 | ||
| 153 | function stage1(){ | 153 | function stage1(){ |
| 154 | tl = new TimelineMax({repeat:1, repeatDelay:4}); | ||
| 154 | 155 | ||
| 155 | imgtxt("#img1", "#txt1"); | 156 | imgtxt("#img1", "#txt1"); |
| 156 | imgtxt("#img2", "#txt2"); | 157 | imgtxt("#img2", "#txt2"); | ... | ... |
| ... | @@ -279,9 +279,11 @@ | ... | @@ -279,9 +279,11 @@ |
| 279 | 279 | ||
| 280 | <script> | 280 | <script> |
| 281 | 281 | ||
| 282 | var tl = new TimelineMax({repeat:3, repeatDelay:3.5}); | 282 | var tl; |
| 283 | 283 | ||
| 284 | function stage1(){ | 284 | function stage1(){ |
| 285 | tl = new TimelineMax({repeat:3, repeatDelay:3.5}); | ||
| 286 | |||
| 285 | tl.to("#txt2", .5, {opacity:1, delay:.3 }); | 287 | tl.to("#txt2", .5, {opacity:1, delay:.3 }); |
| 286 | tl.to("#icon-play2", .5, {opacity:1, delay:-.4 }); | 288 | tl.to("#icon-play2", .5, {opacity:1, delay:-.4 }); |
| 287 | 289 | ... | ... |
| ... | @@ -165,9 +165,11 @@ | ... | @@ -165,9 +165,11 @@ |
| 165 | 165 | ||
| 166 | <script> | 166 | <script> |
| 167 | 167 | ||
| 168 | var tl = new TimelineMax({repeat:2, repeatDelay:3.5}); | 168 | var tl; |
| 169 | 169 | ||
| 170 | function stage1(){ | 170 | function stage1(){ |
| 171 | tl = new TimelineMax({repeat:2, repeatDelay:3}); | ||
| 172 | |||
| 171 | imgtxt("#img1", "#txt1"); | 173 | imgtxt("#img1", "#txt1"); |
| 172 | imgtxt("#img2", "#txt2"); | 174 | imgtxt("#img2", "#txt2"); |
| 173 | imgtxt("#img3", "#txt3"); | 175 | imgtxt("#img3", "#txt3"); |
| ... | @@ -197,7 +199,7 @@ | ... | @@ -197,7 +199,7 @@ |
| 197 | tl.to(txtId, .7, {opacity:1, delay:0 }); | 199 | tl.to(txtId, .7, {opacity:1, delay:0 }); |
| 198 | 200 | ||
| 199 | 201 | ||
| 200 | tl.to(imgId, .5, {opacity:0, delay:.9 }); | 202 | tl.to(imgId, .5, {opacity:0, delay:.6 }); |
| 201 | tl.to(txtId, .5, {opacity:0, delay:-.5 }); | 203 | tl.to(txtId, .5, {opacity:0, delay:-.5 }); |
| 202 | 204 | ||
| 203 | } | 205 | } | ... | ... |
| ... | @@ -309,9 +309,12 @@ | ... | @@ -309,9 +309,12 @@ |
| 309 | 309 | ||
| 310 | <script> | 310 | <script> |
| 311 | 311 | ||
| 312 | var tl = new TimelineMax({repeat:1, repeatDelay:3.5}); | 312 | |
| 313 | var tl; | ||
| 313 | 314 | ||
| 314 | function stage1(){ | 315 | function stage1(){ |
| 316 | tl = new TimelineMax({repeat:1, repeatDelay:3.5}); | ||
| 317 | |||
| 315 | var l = 31; | 318 | var l = 31; |
| 316 | tl.to("#logo", .5, {opacity:1, delay:-.5 }); | 319 | tl.to("#logo", .5, {opacity:1, delay:-.5 }); |
| 317 | tl.to("#txtb1", .5, {left:l, ease:Power1.easeOut, delay:-.3}); | 320 | tl.to("#txtb1", .5, {left:l, ease:Power1.easeOut, delay:-.3}); | ... | ... |
| ... | @@ -149,9 +149,11 @@ | ... | @@ -149,9 +149,11 @@ |
| 149 | 149 | ||
| 150 | <script> | 150 | <script> |
| 151 | 151 | ||
| 152 | var tl = new TimelineMax({repeat:2, repeatDelay:3.5}); | 152 | var tl; |
| 153 | 153 | ||
| 154 | function stage1(){ | 154 | function stage1(){ |
| 155 | tl = new TimelineMax({repeat:2, repeatDelay:3.5}); | ||
| 156 | |||
| 155 | imgtxt("#img1", "#txt1"); | 157 | imgtxt("#img1", "#txt1"); |
| 156 | imgtxt("#img2", "#txt2"); | 158 | imgtxt("#img2", "#txt2"); |
| 157 | imgtxt("#img3", "#txt3"); | 159 | imgtxt("#img3", "#txt3"); | ... | ... |
-
Please register or sign in to post a comment