I have an CSS3 animation which enlarges a div box.
This div contains an child element “p”-tag. When I set the animation class on the div box, the p tag inherits the animation. But I want to run the animation only on the parent div element and not on the child.
How can I prevent animation (-webkit-animation) inheritance?
I tried to set -webkit-animation:none on the child but it doesnt work.
Now it works: http://jsfiddle.net/fiddly/FwHZn/1/
I had to set the width of the “p”-tag. Otherwise the animation will be applied on the div and on the p tag.