<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>動畫 on BenzHub</title><link>https://benzhub.github.io/tags/%E5%8B%95%E7%95%AB/</link><description>Recent content in 動畫 on BenzHub</description><generator>Hugo</generator><language>zh-TW</language><lastBuildDate>Fri, 21 Aug 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://benzhub.github.io/tags/%E5%8B%95%E7%95%AB/index.xml" rel="self" type="application/rss+xml"/><item><title>TailwindCSS 過渡與動畫：transition、animate 全解 | TailwindCSS 完整教學</title><link>https://benzhub.github.io/post/tailwindcss/021-transitions-animations/</link><pubDate>Fri, 21 Aug 2026 00:00:00 +0000</pubDate><guid>https://benzhub.github.io/post/tailwindcss/021-transitions-animations/</guid><description>&lt;blockquote&gt;
&lt;p&gt;上一篇讓元素學會了放大、旋轉、翻面，這一篇讓這些動作真正「流暢起來」。&lt;strong&gt;TailwindCSS&lt;/strong&gt; 的過渡與動畫系統分成兩大支柱：&lt;strong&gt;transition&lt;/strong&gt;（過渡）負責把狀態切換（如 hover 變色、按鈕縮放）變得平順，由屬性（property）、時長（duration）、緩動（ease）、延遲（delay）四要素組成；&lt;strong&gt;animate&lt;/strong&gt; 則提供自主循環的動畫，內建 &lt;code&gt;animate-spin&lt;/code&gt;、&lt;code&gt;animate-ping&lt;/code&gt;、&lt;code&gt;animate-pulse&lt;/code&gt;、&lt;code&gt;animate-bounce&lt;/code&gt; 四種常用效果，並可透過 &lt;strong&gt;@theme&lt;/strong&gt; 搭配 &lt;code&gt;@keyframes&lt;/code&gt; 定義專屬動畫。而 &lt;strong&gt;v4&lt;/strong&gt; 更帶來 &lt;code&gt;@starting-style&lt;/code&gt; 進場動畫、&lt;code&gt;transition-discrete&lt;/code&gt; 離散屬性過渡，以及 &lt;code&gt;motion-safe&lt;/code&gt;／&lt;code&gt;motion-reduce&lt;/code&gt; 無障礙變體，讓動效既漂亮又體貼。&lt;/p&gt;
&lt;/blockquote&gt;</description></item></channel></rss>