> For the complete documentation index, see [llms.txt](https://docs.tenten.co/docs-webflow/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tenten.co/docs-webflow/webflow-101/03-designer-jie-mian-zong-lan/transitions-guo-du.md). Agents can also search and read this documentation through its [MCP server](https://docs.tenten.co/docs-webflow/~gitbook/mcp).

# Transitions 過渡

在不同的狀態之間製作平滑的動畫

過渡有助於在元素的不同狀態之間創建一個平滑的動畫。

持續時間和過渡類型可以被訂製，常見的用例是為元素的懸停狀態創建平滑的過渡，以便它們不會在懸停時突然改變。

1. 為按鈕的懸停狀態設置樣式
2. 設置過渡，使懸停時的動畫更加流暢

## 為按鈕的懸停狀態設置樣式

1. 選擇按鈕
2. 添加盒狀陰影，並對其進行風格化處理。
3. 轉到懸停狀態
4. 增加陰影的強度和距離
5. 切換回無狀態

## 設置過渡，使懸停時的動畫更加平滑

1. 添加過渡，從屬性下拉選單中選擇盒狀陰影
2. 添加500ms的持續時間
3. 保持緩和狀態不變
4. 將鼠標懸停在按鈕上，可以看到陰影的強度和距離的平滑過渡

![](https://3898762810-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUL7tT1ncFWq0egj5syeq%2Fuploads%2Ff1kSvzA27mYIa09ouVcV%2Fimage.png?alt=media\&token=82d30b59-eb87-44f3-9956-a1ee661961bc)

![](https://3898762810-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUL7tT1ncFWq0egj5syeq%2Fuploads%2Fkq3G41xF6wfAxjAEFOh1%2Fimage.png?alt=media\&token=3633105e-93da-44d6-ba3f-839bc17097a3)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.tenten.co/docs-webflow/webflow-101/03-designer-jie-mian-zong-lan/transitions-guo-du.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
