transition-delay | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

transition-delay

I am still learning so I do not have an example besides the one showing in the lesson: #element { transition: width 2s, background-color 1s; transition-delay: 2s; } If I want the delay to happen only after I release the mouse button, and NOT as I press it, how can I specify that? Yes it will happen as I press the mouse button, but that will be without delay.

18th Jan 2024, 7:10 PM
Marcus Bigtree
3 Answers
18th Jan 2024, 11:31 PM
Bob_Li
Bob_Li - avatar
+ 1
Perhaps that requires a bit more logic and interactivity, which is in the domain of JavaScript.
18th Jan 2024, 7:22 PM
Arturop
Arturop - avatar
+ 1
Bob_Li That's very cool!
19th Jan 2024, 6:22 AM
Scott D
Scott D - avatar