Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
学ぶ Setting Transition Duration for Effects | Creating Smooth Transitions in CSS
CSS Layout, Effects, and Sass

bookSetting Transition Duration for Effects

メニューを表示するにはスワイプしてください

We use the transition-duration property to specify the time during which the transition should occur. This property is expressed in seconds (e.g., 3s or 0.45s) or milliseconds (e.g., 3000ms or 450ms). When the duration of a transition is not explicitly defined, the change happens instantaneously.

transition-duration: 3s | 3000ms;

Let's run the following example to see what behaviors we can get. Please, hover over the container, and the transition will start for all elements. The difference is in the duration of the transition.

index.html

index.html

index.css

index.css

copy
question mark

Which of the following is a valid unit for expressing the transition-duration property?

すべての正しい答えを選択

すべて明確でしたか?

どのように改善できますか?

フィードバックありがとうございます!

セクション 3.  3

AIに質問する

expand

AIに質問する

ChatGPT

何でも質問するか、提案された質問の1つを試してチャットを始めてください

セクション 3.  3
some-alt