---
layout: single
property_name: animation-name
---
Defines which animation keyframes to use.
If no animation name is specified, no animation is played.
If a name is specified, the keyframes matching that name will be used. For example, the
Another example: the
#animation-name
default
animation-name: none;
animation-name: fadeIn;
fadeIn animation looks like this:@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
animation-name: moveRight;
moveRight animation:@keyframes moveRight {
from {
transform: translateX(0);
}
to {
transform: translateX(100px);
}
}