> For the complete documentation index, see [llms.txt](https://kymbrik3.gitbook.io/css-notes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kymbrik3.gitbook.io/css-notes/sdelat-beskonechnuyu-animaciyu.md).

# Сделать бесконечную анимацию

```
@keyframes changewidth {
  from {
    width: 100px;
  }

  to {
    width: 300px;
  }
}

div {
  animation-duration: 0.1s;
  animation-name: changewidth;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}
```
