Transition Delay Menu
CSS
Easy
3 views
Problem Description
Add a small delay on hover background for menu items.
Output Format
Print the HTML+CSS code in one block.
Constraints
Use transition-delay for background-color.
Official Solution
<!doctype html>
<html lang='en'>
<head>
<meta charset='utf-8'>
<meta name='viewport' content='width=device-width, initial-scale=1'>
<title>meetcode</title>
<style>
a { display: inline-block; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: #124; transition: background-color 200ms ease; transition-delay: 60ms; }
a:hover { background: #eafaf1; }
</style>
</head>
<body>
<a href='#'>Topics</a>
<a href='#'>Practice</a>
</body>
</html>
Solutions (0)
No solutions submitted yet. Be the first!
No comments yet. Start the discussion!