Transition Button

Transition Button

Easy CSS Transitions & Animations 21 views
Explanation Complexity

Problem Statement

Add a smooth hover transition to a meetcode button.

Input Format

No input.

Output Format

Print the HTML+CSS code in one block.

Constraints

Use transition for background and transform.

Input / Output Format

Input Format
No input.
Output Format
Print the HTML+CSS code in one block.
Constraints
Use transition for background and transform.

Examples

Input:
Output:
(HTML+CSS code)

Example Solution (Public)

CSS
<!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>

Official Solution Code

<!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>
Please login to submit solutions.
Editor
Output

                                        
Please login to submit solutions.