Transition Button
CSS
Easy
3 views
Problem Description
Add a smooth hover transition to a meetcode button.
Output Format
Print the HTML+CSS code in one block.
Constraints
Use transition for background and transform.
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>
.btn { background: #0b5; color: #fff; border: 0; border-radius: 12px; padding: 10px 14px; transition: background 200ms ease, transform 200ms ease; }
.btn:hover { background: #089a4a; transform: translateY(-2px); }
</style>
</head>
<body>
<button class='btn' type='button'>Start</button>
</body>
</html>
Solutions (0)
No solutions submitted yet. Be the first!
No comments yet. Start the discussion!