Challenge: Add a Smooth Transition Effect
メニューを表示するにはスワイプしてください
Task
Enhance the visual experience of the div element with the class name box by adding a smooth transition effect to its hover changes. Follow these steps:
- Specify the correct value for the
transition-propertyproperty. - Set the duration of the transition to last
3000ms. - Ensure that the transition starts
200msafter a user hovers over the element. - Apply the time function
cubic-bezier(0.165, 0.84, 0.44, 1)to control the transition's acceleration and deceleration.
index.html
index.css
- Set the
transition-propertyproperty to the appropriate value that aligns with the changes you want to animate on hover. - Specify the
transition-durationto control how long the transition should last (in this case,3000ms). - Utilize the
transition-delayproperty to introduce a delay before the transition starts after a user hovers over the element (set it to200ms). - Apply the
cubic-bezier(0.165, 0.84, 0.44, 1)timing function to fine-tune the acceleration and deceleration of the transition.
index.html
index.css
すべて明確でしたか?
フィードバックありがとうございます!
セクション 3. 章 7
AIに質問する
AIに質問する
何でも質問するか、提案された質問の1つを試してチャットを始めてください
セクション 3. 章 7