Skip to content
Open
Changes from 1 commit
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
Prev Previous commit
codeX1616-CSS for button animation
  • Loading branch information
pjoshi1616
pjoshi1616 committed Oct 25, 2022
commit 29df5f05291b25fe330d62689230228f062271ce
36 changes: 36 additions & 0 deletions Simple CSS Animation/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
*{
background-color: white;
}

.wrapper{
display: flex;
align-items: center;
justify-content: space-evenly;
text-align: center;
min-height: 100vh;
flex-direction: row;
}

.button{
width: 400px;
height: 100px;
border: none;
color: white;
border: none;
text-align: center;
background-color: black;
border-radius: 6px;
outline: none;
justify-content: center;
transition: ease-out 0.3s;
font-size: 3rem;
box-shadow: inset 0 0 0 0 white;
padding-top: 30px;
}

.button:hover {
transition: ease-out 0.3s;
box-shadow: inset 400px 0 0 0 white;
color: black;
cursor: pointer;
}