jQuery 1.4 Animation Techniques - Index of

jQuery 1.4 Animation Techniques - Index of jQuery 1.4 Animation Techniques - Index of

02.06.2013 Views

[ iii ] Table of Contents The flicker effect 92 Time for action – avoiding the flicker effect 92 Time for action – fixing the flicker 97 Summary 99 Chapter 5: Custom Animations 101 The animate method 102 Per-property easing 102 An alternative syntax for animate() 103 Animating an element's position 103 Time for action – creating an animated content viewer 104 Time for action – initializing variables and prepping the widget 106 Time for action – defining a post-animation callback 107 Time for action – adding event handlers for the UI elements 109 Skinning the widget 111 Time for action – adding a new skin 111 Time for action – creating the underlying page and basic styling 114 Time for action – defining the full and small sizes of the images 115 Time for action – creating the overlay images 116 Time for action – creating the overlay wrappers 116 Time for action – maintaining the overlay positions 119 Creating a jQuery animation plugin 121 Time for action – creating a test page and adding some styling 122 Creating the plugin 124 Time for action – adding a license and defining configurable options 124 Time for action – adding our plugin method to the jQuery namespace 125 Time for action – creating the UI 127 Time for action – creating the transition overlay 129 Time for action – defining the transitions 130 Using the plugin 132 Summary 135 Chapter 6: Extended Animations with jQuery UI 137 Obtaining and setting up jQuery UI 138 A new template file 139 The new effects added by jQuery UI 139 Using the effect API 140 The bounce effect 141 Configuration options 141 Time for action – using the bounce effect 141 The highlight effect 143 Configuration options 143

Table of Contents Time for action – highlighting elements 143 The pulsate effect 145 Configuration options 145 Time for action – making an element pulsate 145 The shake effect 147 Configuration options 147 Time for action – shaking an element 147 The size effect 149 Configuration options 149 Time for action – resizing elements 150 The transfer effect 152 Configuration options 152 Time for action – transferring the outline of one element to another 152 Using effects with show and hide logic 155 The blind effect 155 Configuration options 156 Time for action – using the blind effect 156 The clip effect 157 Configuration options 157 Time for action – clipping an element in and out 158 The drop effect 159 Configuration options 160 Time for action – using the effect 160 The explode effect 162 Configuration options 162 Time for action – exploding an element 163 The fold effect 164 Configuration options 164 Time for action – folding an element away 164 The puff effect 166 Configuration options 166 Time for action – making an element disappear in a puff 166 The slide effect 168 Configuration options 168 Time for action – sliding elements in and out of view 168 The scale effect 170 Configuration options 170 Time for action – scaling an element 170 Easing functions 173 Time for action – adding easing to effects 174 Color animations 174 Time for action – animating between colors 174 Class transitions 176 [ iv ]

Table <strong>of</strong> Contents<br />

Time for action – highlighting elements 143<br />

The pulsate effect 145<br />

Configuration options 145<br />

Time for action – making an element pulsate 145<br />

The shake effect 147<br />

Configuration options 147<br />

Time for action – shaking an element 147<br />

The size effect 149<br />

Configuration options 149<br />

Time for action – resizing elements 150<br />

The transfer effect 152<br />

Configuration options 152<br />

Time for action – transferring the outline <strong>of</strong> one element to another 152<br />

Using effects with show and hide logic 155<br />

The blind effect 155<br />

Configuration options 156<br />

Time for action – using the blind effect 156<br />

The clip effect 157<br />

Configuration options 157<br />

Time for action – clipping an element in and out 158<br />

The drop effect 159<br />

Configuration options 160<br />

Time for action – using the effect 160<br />

The explode effect 162<br />

Configuration options 162<br />

Time for action – exploding an element 163<br />

The fold effect 164<br />

Configuration options 164<br />

Time for action – folding an element away 164<br />

The puff effect 166<br />

Configuration options 166<br />

Time for action – making an element disappear in a puff 166<br />

The slide effect 168<br />

Configuration options 168<br />

Time for action – sliding elements in and out <strong>of</strong> view 168<br />

The scale effect 170<br />

Configuration options 170<br />

Time for action – scaling an element 170<br />

Easing functions 173<br />

Time for action – adding easing to effects 174<br />

Color animations 174<br />

Time for action – animating between colors 174<br />

Class transitions 176<br />

[ iv ]

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!