how to add shake animation for a span element inside div

Viewed 1616
 <div id="about-desc">
    <p>
 Lorem ipsum dolor sit <span class="animation">amet</span>, consectetur adipisicing elit. <span class="animation"> Officia reprehenderit</span>, <span class="animation"> sit eligendi</span> deserunt, blanditiis quas porro omnis provident quidem voluptate! Fugit ipsa mollitia, atque commodi asperiores, rerum dicta ratione aut.
    </p>
 </div>

$(document).ready(function () { 
  $(".animation").addClass("animated shake");
});

I am not able to figure out where i actually went wrong. When i add animation to div element it is working correctly but it's not happening with span element? Can somebody explain how to solve this problem

1 Answers
Related