Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprende Adding Delay to CSS Transitions | Creating Smooth Transitions in CSS
Advanced CSS Techniques

book
Adding Delay to CSS Transitions

The transition-delay property determines the time interval before a transition animation starts. It can be utilized in creating transition sequences for various elements.

css
transition-delay: 0.5s | 500ms;

By default, the delay time is set to 0 seconds.

Let's consider the following example. When we hover over the square, the transition animation will begin in 1 second, as the transition-delay is set to 1000 milliseconds.

html

index.html

css

index.css

copy
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet" href="index.css" />
</head>
<body>
<div class="box">Hover me</div>
</body>
</html>
question mark

What does the transition-delay property control?

Select the correct answer

¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

Sección 3. Capítulo 5

Pregunte a AI

expand
ChatGPT

Pregunte lo que quiera o pruebe una de las preguntas sugeridas para comenzar nuestra charla

some-alt