Given the following source:
<head>
<style>
.main .item {
animation: animate1 2s infinite;
}
.main .icon {
animation: rotate1 2s infinite;
}
@keyframes animate1 {
0% { transform: scale(1) }
100% { transform: scale(1, 1.5) }
}
@keyframes rotate1 {
0% { transform: rotate(0deg) }
100% { transform: rotate(-5deg) }
}
</style>
</head>
<body>
<div class="main">
<div class="item">test 123</div>
<div class="item">test 456</div>
<div class="item icon">icon!</div>
</div>
</body>
Is there a way to get icon to have rotate1 and animate1 by a way of inheritance?
I know I could list both animations on the .icon selector, but the original page has many animations with different timings.