div {
animation-duration: 3s;
animation-name: slidein;
}
@keyframes slidein {
from {
margin-right: 100%;
height: 300%;
}
to {
margin-right: 0%;
height: 100%;
}
}
Is it possible to dynamically pass the values of margin-right
and height
parameters from Javascript to the above animation CSS code?