संक्रमण-विलंब . का उपयोग करें संपत्ति सीएसएस के साथ संक्रमण प्रभाव के लिए देरी निर्धारित करने के लिए। संक्रमण के 1-सेकंड विलंब को सेट करने के लिए आप निम्न कोड चलाने का प्रयास कर सकते हैं:
उदाहरण
<!DOCTYPE html>
<html>
<head>
<style>
div {
width: 150px;
height: 150px;
background: blue;
transition: width 3s;
transition-delay: 2s;
}
div:hover {
width: 350px;
}
</style>
</head>
<body>
<h1>Heading One</h1>
<p>Hover over the below box to change its width. It begins with a delay of 2 seconds.</p>
<div></div>
</body>
</html>