Define a from/to animation state and instantly preview and copy the generated @keyframes CSS.
@keyframes bounce {
0% { transform: translateY(0); }
100% { transform: translateY(-20px); }
}
.element {
animation: bounce 1s ease-in-out infinite alternate;
}This generator covers a simple 0%-100% animation; add extra percentage steps manually in the copied CSS for more complex sequences.