PrepAway - Latest Free Exam Questions & Answers

Which CSS3 code should you use?

You are developing a web application by using HTML5.
You have the following requirements.
The color of a menu item must change when a user hovers over the item.
The color of the menu item must change back to its original color after five seconds.
You need to ensure that the animation is applied to all menu items.
Which CSS3 code should you use?

PrepAway - Latest Free Exam Questions & Answers

A.
Option A

B.
Option B

C.
Option C

D.
Option D

Explanation:
transition-property
The transition-property property specifies the name of the CSS property the transition effect is for (the transition
effect will start when the specified CSS property changes).
Tip: A transition effect could typically occur when a user hover over an element.
Note: Always specify the transition-duration property, otherwise the duration is 0, and the transition will have no
effect.
CSS3 transition-property Property

One Comment on “Which CSS3 code should you use?


Leave a Reply