<h1> Ví dụ về key frame trong CSS Animation
<br>
<div class='animation'></div>

.animation {
  width: 100px;
  height: 100px;
  background: green;
  position: absolute;
  animation-name: lefttoright;
  animation-duration: 10s;
}

@keyframes lefttoright {
  from {left: 0px;}
  to {left: 300px;}
}
Run Pen

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.