# 8.8 animation-play-state

## animation-play-state 說明

動畫效果在執行的時候，狀態是 **`running`**，然而我們可以透過 **`animation-play-state`** 來設定暫停與播放的切換。

可設定的值：

* **`running`**：這是預設值。
* **`paused`**：暫停。

例：

正方形變圓形，執行無限多次，點擊可暫停(**`paused`**)及繼續執行(**`running`**)：

{% embed url="<https://codepen.io/carlos411/pen/MWZYjOo>" %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.webmix.cc/responsive-web-design/8-animation-dong-hua-xiao-guo/8.8-animation-play-state.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
