I got this sample here is it possible to make the inside of the div which is "p" not animate but the div container animates?
div {
width: 100px;
height: 100px;
background-color: red;
-webkit-animation-name: example; /* Safari 4.0 - 8.0 */
-webkit-animation-duration: 4s; /* Safari 4.0 - 8.0 */
animation-name: example;
animation-duration: 4s;
}
div p {
position: absolute;
top: 25px;
}
/* Safari 4.0 - 8.0 */
@-webkit-keyframes example {
0%{ opacity:.4;}
100%{opacity:1;}
}
/* Standard syntax */
@keyframes example {
0%{ opacity:.4;}
100%{opacity:1;}
}
<div><p>Sample text here.</p></div>