@@ -30,10 +30,10 @@ $(function() {
30
30
var el = $ ( this ) ;
31
31
el . addClass ( "current" ) . hide ( duration , function ( ) {
32
32
setTimeout ( function ( ) {
33
- el . show ( duration , function ( ) { el . removeClass ( "current" ) } ) ;
33
+ el . show ( duration , function ( ) { el . removeClass ( "current" ) ; } ) ;
34
34
} , wait ) ;
35
- } )
36
- } )
35
+ } ) ;
36
+ } ) ;
37
37
38
38
effect ( "#blindLeft" , "blind" , { direction : "left" } ) ;
39
39
effect ( "#blindUp" , "blind" , { direction : "up" } ) ;
@@ -63,6 +63,16 @@ $(function() {
63
63
64
64
effect ( "#puff" , "puff" , { times : 2 } ) ;
65
65
effect ( "#scale" , "scale" , { } ) ;
66
+ effect ( "#size" , "size" , { } ) ;
67
+ $ ( "#sizeToggle" ) . bind ( "click" , function ( ) {
68
+ var opts = { to : { width : 300 , height : 300 } } ;
69
+ $ ( this ) . addClass ( 'current' )
70
+ . toggle ( "size" , opts , duration )
71
+ . delay ( wait )
72
+ . toggle ( "size" , opts , duration , function ( ) {
73
+ $ ( this ) . removeClass ( "current" ) ;
74
+ } ) ;
75
+ } ) ;
66
76
67
77
$ ( "#shake" ) . bind ( "click" , function ( ) { $ ( this ) . addClass ( "current" ) . effect ( "shake" , { } , 100 , function ( ) { $ ( this ) . removeClass ( "current" ) ; } ) ; } ) ;
68
78
@@ -84,13 +94,13 @@ $(function() {
84
94
$ ( "#removeClass" ) . click ( function ( ) {
85
95
$ ( this ) . addClass ( "current" ) . removeClass ( function ( ) {
86
96
window . console && console . log ( arguments ) ;
87
- return "current"
97
+ return "current" ;
88
98
} , duration ) ;
89
99
} ) ;
90
100
$ ( "#toggleClass" ) . click ( function ( ) {
91
101
$ ( this ) . toggleClass ( function ( ) {
92
102
window . console && console . log ( arguments ) ;
93
- return "current"
103
+ return "current" ;
94
104
} , duration ) ;
95
105
} ) ;
96
106
} ) ;
0 commit comments