1- /* global TimelineMax, ScrollMagic, Power2, $ */
1+ /* global TimelineMax, ScrollMagic, Power2, Bounce, $ */
22'use strict' ;
33
44$ ( function ( ) {
@@ -68,9 +68,9 @@ $(function () {
6868 // Second Section
6969 tl [ 1 ] = new TimelineMax ( ) ;
7070 tl [ 1 ]
71- . to ( $widgets , .2 , { x :0 , y :0 , z :0 , scale :0 } )
71+ . to ( $widgets , 0 .2, { x :0 , y :0 , z :0 , scale :0 } )
7272 . to ( $illusSync , 3 , { scale :0 , opacity :0 } )
73- . to ( $anim , 5 , { scale :.5 } )
73+ . to ( $anim , 5 , { scale :0 .5 } )
7474 . to ( '#anim img' , 4 , { opacity :0 } , '-=8' )
7575 . to ( '#anim > .widget' , 2 , { opacity :1 , scale :1 } )
7676 . to ( '.screen-1' , 3 , { opacity :1 } )
@@ -111,12 +111,12 @@ $(function () {
111111 . addTo ( controller ) ;
112112 }
113113
114- scenes [ 0 ] . on ( 'start' , function ( event ) {
114+ scenes [ 0 ] . on ( 'start' , function ( ) {
115115 intro . seek ( 20 ) ;
116116 } ) ;
117117
118- scenes [ 3 ] . on ( 'leave' , function ( event ) {
119- $ ( 'body:after' ) . addClass ( 'hide' )
118+ scenes [ 3 ] . on ( 'leave' , function ( ) {
119+ $ ( 'body:after' ) . addClass ( 'hide' ) ;
120120 } ) ;
121121
122122} ) ;
@@ -165,7 +165,7 @@ function animate() {
165165 context . clearRect ( 0 , 0 , screenW , screenH ) ;
166166 $ . each ( stars , function ( ) {
167167 this . draw ( context ) ;
168- } )
168+ } ) ;
169169}
170170
171171// Star
@@ -175,7 +175,7 @@ function Star(x, y, length, opacity) {
175175 this . length = parseInt ( length ) ;
176176 this . opacity = opacity ;
177177 this . factor = 1 ;
178- this . increment = Math . random ( ) * .03 ;
178+ this . increment = Math . random ( ) * 0 .03;
179179}
180180
181181// Draw a star
@@ -199,7 +199,7 @@ Star.prototype.draw = function() {
199199
200200 this . opacity += this . increment * this . factor ;
201201
202- context . beginPath ( )
202+ context . beginPath ( ) ;
203203 for ( var i = 5 ; i -- ; ) {
204204 context . lineTo ( 0 , this . length ) ;
205205 context . translate ( 0 , this . length ) ;
@@ -215,4 +215,4 @@ Star.prototype.draw = function() {
215215 // context.shadowColor = '#1D96C7';
216216 context . fill ( ) ;
217217 context . restore ( ) ;
218- }
218+ } ;
0 commit comments