Ben's Sandbox
  • Projects
  • Tags

Managing Animation Sequences in jQuery


View Blog   View Source  
This demo investigates how to best manage the code that controls the animation sequence of multiple elements. The goal was to find a readable and maintainable approach that would benefit more complex animations. The source has 3 equivalent implementations. The demo is running using option C. Even though its longer, I find it easier to read and like the modularity of the sequence so its easily reusable and changable. Click anywhere inside the dotted box below to see the animation.

© Ben Olson 2012 with help from Jekyll Bootstrap and Twitter Bootstrap