|
1 | 1 | /* |
2 | | - * animate.less v1.0.0 | animateforless.com |
| 2 | + * animate.less v1.0.1 | animateforless.com |
3 | 3 | * |
4 | 4 | * ----------------------------------------------------------------------------- |
5 | 5 | * |
|
37 | 37 | // FUNCTIONS |
38 | 38 | // xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx |
39 | 39 |
|
40 | | -#animator { |
| 40 | +#afl { |
41 | 41 |
|
42 | 42 | // ---------------------------------------- |
43 | 43 | // INITIALIZERS |
|
227 | 227 | // ATTENTION SEEKERS |
228 | 228 | // ---------------------------------------- |
229 | 229 |
|
230 | | -.bounce() { #animator.animation(bounce); #animator.transform-origin(center bottom); } |
231 | | -.flash() { #animator.animation(flash); } |
232 | | -.pulse() { #animator.animation(pulse); } |
233 | | -.rubberBand() { #animator.animation(rubberBand); } |
234 | | -.shake() { #animator.animation(shake); } |
235 | | -.swing() { #animator.animation(swing); #animator.transform-origin(top center); } |
236 | | -.tada() { #animator.animation(tada); } |
237 | | -.wobble() { #animator.animation(wobble); } |
| 230 | +.bounce() { #afl.animation(bounce); #afl.transform-origin(center bottom); } |
| 231 | +.flash() { #afl.animation(flash); } |
| 232 | +.pulse() { #afl.animation(pulse); } |
| 233 | +.rubberBand() { #afl.animation(rubberBand); } |
| 234 | +.shake() { #afl.animation(shake); } |
| 235 | +.swing() { #afl.animation(swing); #afl.transform-origin(top center); } |
| 236 | +.tada() { #afl.animation(tada); } |
| 237 | +.wobble() { #afl.animation(wobble); } |
238 | 238 |
|
239 | 239 | // ---------------------------------------- |
240 | 240 | // BOUNCING ENTRANCES |
241 | 241 | // ---------------------------------------- |
242 | 242 |
|
243 | | -.bounceIn() { #animator.animation(bounceIn); #animator.duration(a;0.75s); } |
244 | | -.bounceInDown() { #animator.animation(bounceInDown); } |
245 | | -.bounceInLeft() { #animator.animation(bounceInLeft); } |
246 | | -.bounceInRight() { #animator.animation(bounceInRight); } |
247 | | -.bounceInUp() { #animator.animation(bounceInUp); } |
| 243 | +.bounceIn() { #afl.animation(bounceIn); #afl.duration(a;0.75s); } |
| 244 | +.bounceInDown() { #afl.animation(bounceInDown); } |
| 245 | +.bounceInLeft() { #afl.animation(bounceInLeft); } |
| 246 | +.bounceInRight() { #afl.animation(bounceInRight); } |
| 247 | +.bounceInUp() { #afl.animation(bounceInUp); } |
248 | 248 |
|
249 | 249 | // ---------------------------------------- |
250 | 250 | // BOUNCING EXITS |
251 | 251 | // ---------------------------------------- |
252 | 252 |
|
253 | | -.bounceOut() { #animator.animation(bounceOut); #animator.duration(a;0.75s); } |
254 | | -.bounceOutDown() { #animator.animation(bounceOutDown); } |
255 | | -.bounceOutLeft() { #animator.animation(bounceOutLeft); } |
256 | | -.bounceOutRight() { #animator.animation(bounceOutRight); } |
257 | | -.bounceOutUp() { #animator.animation(bounceOutUp); } |
| 253 | +.bounceOut() { #afl.animation(bounceOut); #afl.duration(a;0.75s); } |
| 254 | +.bounceOutDown() { #afl.animation(bounceOutDown); } |
| 255 | +.bounceOutLeft() { #afl.animation(bounceOutLeft); } |
| 256 | +.bounceOutRight() { #afl.animation(bounceOutRight); } |
| 257 | +.bounceOutUp() { #afl.animation(bounceOutUp); } |
258 | 258 |
|
259 | 259 | // ---------------------------------------- |
260 | 260 | // FADING ENTRANCES |
261 | 261 | // ---------------------------------------- |
262 | 262 |
|
263 | | -.fadeIn() { #animator.animation(fadeIn); } |
264 | | -.fadeInDown() { #animator.animation(fadeInDown); } |
265 | | -.fadeInDownBig() { #animator.animation(fadeInDownBig); } |
266 | | -.fadeInLeft() { #animator.animation(fadeInLeft); } |
267 | | -.fadeInLeftBig() { #animator.animation(fadeInLeftBig); } |
268 | | -.fadeInRight() { #animator.animation(fadeInRight); } |
269 | | -.fadeInRightBig() { #animator.animation(fadeInRightBig); } |
270 | | -.fadeInUp() { #animator.animation(fadeInUp); } |
271 | | -.fadeInUpBig() { #animator.animation(fadeInUpBig); } |
| 263 | +.fadeIn() { #afl.animation(fadeIn); } |
| 264 | +.fadeInDown() { #afl.animation(fadeInDown); } |
| 265 | +.fadeInDownBig() { #afl.animation(fadeInDownBig); } |
| 266 | +.fadeInLeft() { #afl.animation(fadeInLeft); } |
| 267 | +.fadeInLeftBig() { #afl.animation(fadeInLeftBig); } |
| 268 | +.fadeInRight() { #afl.animation(fadeInRight); } |
| 269 | +.fadeInRightBig() { #afl.animation(fadeInRightBig); } |
| 270 | +.fadeInUp() { #afl.animation(fadeInUp); } |
| 271 | +.fadeInUpBig() { #afl.animation(fadeInUpBig); } |
272 | 272 |
|
273 | 273 | // ---------------------------------------- |
274 | 274 | // FADING EXITS |
275 | 275 | // ---------------------------------------- |
276 | 276 |
|
277 | | -.fadeOut() { #animator.animation(fadeOut); } |
278 | | -.fadeOutDown() { #animator.animation(fadeOutDown); } |
279 | | -.fadeOutDownBig() { #animator.animation(fadeOutDownBig); } |
280 | | -.fadeOutLeft() { #animator.animation(fadeOutLeft); } |
281 | | -.fadeOutLeftBig() { #animator.animation(fadeOutLeftBig); } |
282 | | -.fadeOutRight() { #animator.animation(fadeOutRight); } |
283 | | -.fadeOutRightBig() { #animator.animation(fadeOutRightBig); } |
284 | | -.fadeOutUp() { #animator.animation(fadeOutUp); } |
285 | | -.fadeOutUpBig() { #animator.animation(fadeOutUpBig); } |
| 277 | +.fadeOut() { #afl.animation(fadeOut); } |
| 278 | +.fadeOutDown() { #afl.animation(fadeOutDown); } |
| 279 | +.fadeOutDownBig() { #afl.animation(fadeOutDownBig); } |
| 280 | +.fadeOutLeft() { #afl.animation(fadeOutLeft); } |
| 281 | +.fadeOutLeftBig() { #afl.animation(fadeOutLeftBig); } |
| 282 | +.fadeOutRight() { #afl.animation(fadeOutRight); } |
| 283 | +.fadeOutRightBig() { #afl.animation(fadeOutRightBig); } |
| 284 | +.fadeOutUp() { #afl.animation(fadeOutUp); } |
| 285 | +.fadeOutUpBig() { #afl.animation(fadeOutUpBig); } |
286 | 286 |
|
287 | 287 | // ---------------------------------------- |
288 | 288 | // FLIPPERS |
289 | 289 | // ---------------------------------------- |
290 | 290 |
|
291 | | -.flip() { #animator.animation(flip); #animator.backface-visibility(visible); } |
292 | | -.flipInX() { #animator.animation(flipInX); #animator.backface-visibility(visible) !important; } |
293 | | -.flipInY() { #animator.animation(flipInY); #animator.backface-visibility(visible) !important; } |
294 | | -.flipOutX() { #animator.animation(flipOutX); #animator.backface-visibility(visible) !important; #animator.duration(a;0.75s); } |
295 | | -.flipOutY() { #animator.animation(flipOutY); #animator.backface-visibility(visible) !important; #animator.duration(a;0.75s); } |
| 291 | +.flip() { #afl.animation(flip); #afl.backface-visibility(visible); } |
| 292 | +.flipInX() { #afl.animation(flipInX); #afl.backface-visibility(visible) !important; } |
| 293 | +.flipInY() { #afl.animation(flipInY); #afl.backface-visibility(visible) !important; } |
| 294 | +.flipOutX() { #afl.animation(flipOutX); #afl.backface-visibility(visible) !important; #afl.duration(a;0.75s); } |
| 295 | +.flipOutY() { #afl.animation(flipOutY); #afl.backface-visibility(visible) !important; #afl.duration(a;0.75s); } |
296 | 296 |
|
297 | 297 | // ---------------------------------------- |
298 | 298 | // LIGHTSPEED |
299 | 299 | // ---------------------------------------- |
300 | 300 |
|
301 | | -.lightSpeedIn() { #animator.animation(lightSpeedIn); #animator.timing(ease-out); } |
302 | | -.lightSpeedOut() { #animator.animation(lightSpeedOut); #animator.timing(ease-in); } |
| 301 | +.lightSpeedIn() { #afl.animation(lightSpeedIn); #afl.timing(ease-out); } |
| 302 | +.lightSpeedOut() { #afl.animation(lightSpeedOut); #afl.timing(ease-in); } |
303 | 303 |
|
304 | 304 | // ---------------------------------------- |
305 | 305 | // ROTATING ENTRANCES |
306 | 306 | // ---------------------------------------- |
307 | 307 |
|
308 | | -.rotateIn() { #animator.animation(rotateIn); } |
309 | | -.rotateInDownLeft() { #animator.animation(rotateInDownLeft); } |
310 | | -.rotateInDownRight() { #animator.animation(rotateInDownRight); } |
311 | | -.rotateInUpLeft() { #animator.animation(rotateInUpLeft); } |
312 | | -.rotateInUpRight() { #animator.animation(rotateInUpRight); } |
| 308 | +.rotateIn() { #afl.animation(rotateIn); } |
| 309 | +.rotateInDownLeft() { #afl.animation(rotateInDownLeft); } |
| 310 | +.rotateInDownRight() { #afl.animation(rotateInDownRight); } |
| 311 | +.rotateInUpLeft() { #afl.animation(rotateInUpLeft); } |
| 312 | +.rotateInUpRight() { #afl.animation(rotateInUpRight); } |
313 | 313 |
|
314 | 314 | // ---------------------------------------- |
315 | 315 | // ROTATING EXITS |
316 | 316 | // ---------------------------------------- |
317 | 317 |
|
318 | | -.rotateOut() { #animator.animation(rotateOut); } |
319 | | -.rotateOutDownLeft() { #animator.animation(rotateOutDownLeft); } |
320 | | -.rotateOutDownRight() { #animator.animation(rotateOutDownRight); } |
321 | | -.rotateOutUpLeft() { #animator.animation(rotateOutUpLeft); } |
322 | | -.rotateOutUpRight() { #animator.animation(rotateOutUpRight); } |
| 318 | +.rotateOut() { #afl.animation(rotateOut); } |
| 319 | +.rotateOutDownLeft() { #afl.animation(rotateOutDownLeft); } |
| 320 | +.rotateOutDownRight() { #afl.animation(rotateOutDownRight); } |
| 321 | +.rotateOutUpLeft() { #afl.animation(rotateOutUpLeft); } |
| 322 | +.rotateOutUpRight() { #afl.animation(rotateOutUpRight); } |
323 | 323 |
|
324 | 324 | // ---------------------------------------- |
325 | 325 | // SPECIALS |
326 | 326 | // ---------------------------------------- |
327 | 327 |
|
328 | | -.hinge() { #animator.animation(hinge); #animator.duration(2s); } |
329 | | -.rollIn() { #animator.animation(rollIn); } |
330 | | -.rollOut() { #animator.animation(rollOut); } |
| 328 | +.hinge() { #afl.animation(hinge); #afl.duration(2s); } |
| 329 | +.rollIn() { #afl.animation(rollIn); } |
| 330 | +.rollOut() { #afl.animation(rollOut); } |
331 | 331 |
|
332 | 332 | // ---------------------------------------- |
333 | 333 | // ZOOM ENTRANCES |
334 | 334 | // ---------------------------------------- |
335 | 335 |
|
336 | | -.zoomIn() { #animator.animation(zoomIn); } |
337 | | -.zoomInDown() { #animator.animation(zoomInDown); } |
338 | | -.zoomInLeft() { #animator.animation(zoomInLeft); } |
339 | | -.zoomInRight() { #animator.animation(zoomInRight); } |
340 | | -.zoomInUp() { #animator.animation(zoomInUp); } |
| 336 | +.zoomIn() { #afl.animation(zoomIn); } |
| 337 | +.zoomInDown() { #afl.animation(zoomInDown); } |
| 338 | +.zoomInLeft() { #afl.animation(zoomInLeft); } |
| 339 | +.zoomInRight() { #afl.animation(zoomInRight); } |
| 340 | +.zoomInUp() { #afl.animation(zoomInUp); } |
341 | 341 |
|
342 | 342 | // ---------------------------------------- |
343 | 343 | // ZOOM EXITS |
344 | 344 | // ---------------------------------------- |
345 | 345 |
|
346 | | -.zoomOut() { #animator.animation(zoomOut); } |
347 | | -.zoomOutDown() { #animator.animation(zoomOutDown); } |
348 | | -.zoomOutLeft() { #animator.animation(zoomOutLeft); } |
349 | | -.zoomOutRight() { #animator.animation(zoomOutRight); } |
350 | | -.zoomOutUp() { #animator.animation(zoomOutUp); } |
| 346 | +.zoomOut() { #afl.animation(zoomOut); } |
| 347 | +.zoomOutDown() { #afl.animation(zoomOutDown); } |
| 348 | +.zoomOutLeft() { #afl.animation(zoomOutLeft); } |
| 349 | +.zoomOutRight() { #afl.animation(zoomOutRight); } |
| 350 | +.zoomOutUp() { #afl.animation(zoomOutUp); } |
351 | 351 |
|
352 | 352 | // ---------------------------------------- |
353 | 353 | // SLIDING ENTRANCES |
354 | 354 | // ---------------------------------------- |
355 | 355 |
|
356 | | -.slideInDown() { #animator.animation(slideInDown); } |
357 | | -.slideInLeft() { #animator.animation(slideInLeft); } |
358 | | -.slideInRight() { #animator.animation(slideInRight); } |
359 | | -.slideInUp() { #animator.animation(slideInUp); } |
| 356 | +.slideInDown() { #afl.animation(slideInDown); } |
| 357 | +.slideInLeft() { #afl.animation(slideInLeft); } |
| 358 | +.slideInRight() { #afl.animation(slideInRight); } |
| 359 | +.slideInUp() { #afl.animation(slideInUp); } |
360 | 360 |
|
361 | 361 | // ---------------------------------------- |
362 | 362 | // SLIDING EXITS |
363 | 363 | // ---------------------------------------- |
364 | 364 |
|
365 | | -.slideOutDown() { #animator.animation(slideOutDown); } |
366 | | -.slideOutLeft() { #animator.animation(slideOutLeft); } |
367 | | -.slideOutRight() { #animator.animation(slideOutRight); } |
368 | | -.slideOutUp() { #animator.animation(slideOutUp); } |
| 365 | +.slideOutDown() { #afl.animation(slideOutDown); } |
| 366 | +.slideOutLeft() { #afl.animation(slideOutLeft); } |
| 367 | +.slideOutRight() { #afl.animation(slideOutRight); } |
| 368 | +.slideOutUp() { #afl.animation(slideOutUp); } |
369 | 369 |
|
370 | 370 |
|
371 | 371 | // xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx |
372 | 372 | // ANIMATION CLASSES (USES ANIMATION FUNCTIONS LISTED ABOVE) |
373 | 373 | // xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx |
374 | 374 |
|
375 | | -.animated { #animator.animated; } |
376 | | -.animated.infinite { #animator.iterate(infinite); } |
| 375 | +.animated { #afl.animated; } |
| 376 | +.animated.infinite { #afl.iterate(infinite); } |
377 | 377 | .bounce { .bounce; } |
378 | 378 | .flash { .flash; } |
379 | 379 | .pulse { .pulse; } |
|
0 commit comments