Cubic Bezier Timing
CSS
Medium
4 views
Problem Description
Use a custom cubic-bezier timing function for a hover move.
Output Format
Print the HTML+CSS code in one block.
Constraints
Use transition timing cubic-bezier for 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>
.chip { display: inline-block; padding: 10px 12px; border-radius: 999px; border: 1px solid #ddd; transition: transform 220ms cubic-bezier(0.2, 0.9, 0.2, 1); }
.chip:hover { transform: translateY(-4px); }
</style>
</head>
<body>
<span class='chip'>meetcode</span>
</body>
</html>
Solutions (0)
No solutions submitted yet. Be the first!
No comments yet. Start the discussion!