Tomarinator Tomarinator - 2 months ago 15
CSS Question

CSS animation not working for a-tag

In the following demonstration, I am trying to apply bouncing animation to three elements, a div, p-tag and a-tag , its not working for the a-tag.

Any clues what might be wrong ?

link:

http://codepen.io/SauravTom/pen/Jougx

Answer

Set display:block or display:inline-blockon the a tag.

You can't use margins or scaling on inline elements.

Here's an updated example: http://codepen.io/anon/pen/odiuz

Comments