Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions UI Snippets/Button Animation/main.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="styles.css">
<title>Button Animation</title>
</head>
<body>
<button class="animated-btn">Click Me!</button>
</body>
</html>
31 changes: 31 additions & 0 deletions UI Snippets/Button Animation/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
body{
display:flex;
justify-content:center;
align-items:center;
height:100vh;
background:#1e1e2f;
font-family: 'Poppins', sans-serif;
}
.animated-btn{
padding: 14px 32px;
font-size: 16px;
color:#fff;
background: linear-gradient(90deg, #ff105f, #ffad06);
border:none;
border-radius: 8px;
cursor:pointer;
transition: transform 0.3s ease;
}
.animated-btn:hover{
transform: scale(1.1) translateY(-5px);
box-shadow: 0 10px 20px rgba(255, 16, 95, 0.5), 0 6px 6px rgba(255, 173, 6, 0.5);
}
.animated-btn:active{
transform: scale(0.95) translateY(2px);
box-shadow: 0 5px 10px rgba(255, 16, 95, 0.5), 0 3px 3px rgba(255, 173, 6, 0.5);
}