Skip to content
/ poof Public

Cross-browser compatible (including legacy browsers) solution for displaying a 'poof' animation on each click or tap (similar to removing icons from a Mac OS X dock).

License

Notifications You must be signed in to change notification settings

iamvanja/poof

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

POOF!

Cross-browser compatible (including legacy browsers) solution for displaying a 'poof' animation on each click or tap (similar to removing icons from a Mac OS X dock). Taken from a project for which I needed to develop this.
Animation is sprite based.
Uses Modernizr to test whether the browser supports css animations or not. Depending on that, used animation is either css or javascript-based. Also uses Compass/SCSS to dynamically determine element dimensions and set up keyframe animation.

Feedback, bugs, questions? E-mail me, I'll respond quickly!

Demo

  • Demo can be found on link.

Possible future improvement

  • modify into a plugin so that this can be used to generally animate elements using sprites, given the passed parameters (sprite image, element name, frame count, custom callback function,...)
  • not rely on Modernizr (implement only test for css animations resulting in overall smaller footprint)
  • high DPI improvements (detection, calculation, image update)

About

Cross-browser compatible (including legacy browsers) solution for displaying a 'poof' animation on each click or tap (similar to removing icons from a Mac OS X dock).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published