Skip to content

Commit

Permalink
Active button css added
Browse files Browse the repository at this point in the history
  • Loading branch information
sachinsaini4278 committed Apr 17, 2022
1 parent cd3f1cc commit 484617b
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
15 changes: 15 additions & 0 deletions active button animation/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="container">
<button class="activeBtn">Active</button>
</div>
</body>
</html>
28 changes: 28 additions & 0 deletions active button animation/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
*{
margin:0;
padding: 0;
box-sizing: border-box;
}
.container{
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
.activeBtn{
padding: 20px;
background-color: #af4646;
border:none;
border-radius: 10px;
color: white;
font-size: larger;
box-shadow: 5px 5px 1px rgba(0,0,0,0.5);
transition: all 0.5s;
}
.activeBtn:hover{
cursor: pointer;
}
.activeBtn:active{
box-shadow: none;
transition: all 0.5;
}

0 comments on commit 484617b

Please sign in to comment.