Skip to content
Open
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
56 changes: 56 additions & 0 deletions button
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
<div class="button-container">
<button class="button">Click me</button>
</div>



.button-container {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}

.button {
background-color: #4CAF50;
color: white;
font-size: 16px;
padding: 12px 24px;
border: none;
border-radius: 4px;
cursor: pointer;
transition: all 0.3s ease;
}

.button:hover {
background-color: #3e8e41;
}

.button:active {
background-color: #3e8e41;
transform: translateY(2px);
transition-duration: 0.1s;
}

.button:hover {
animation: shake 0.5s;
}

@keyframes shake {
0% { transform: translateX(0); }
25% { transform: translateX(8px); }
50% { transform: translateX(-8px); }
75% { transform: translateX(8px); }
100% { transform: translateX(0); }
}

.button {
transition: all 0.3s ease;
box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
}

.button:hover {
transform: scale(1.1);
box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
}