Skip to content

Commit

Permalink
Added New Animated 'Hover Me' Button (Spyware007#514)
Browse files Browse the repository at this point in the history
  • Loading branch information
AdityaLahane-2003 committed May 25, 2023
1 parent e1b4e58 commit 995bebd
Show file tree
Hide file tree
Showing 3 changed files with 96 additions and 0 deletions.
21 changes: 21 additions & 0 deletions public/Buttons/AdityaLahane-2003_1/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<!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">
<div class="buttons-wrapper">
<div><a class="click-btn btn-style509" href="#">Hover me</a></div>
</div>
</div>
</div>
</body>

</html>
74 changes: 74 additions & 0 deletions public/Buttons/AdityaLahane-2003_1/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
@import url("https://fonts.googleapis.com/css2?family=Fredoka+One&display=swap");
html {
font-family: "Fredoka One", cursive;
background-color: #fafbff;
}

.container {
width: 100%;
height: 100%;
display: flex;
position: fixed;
flex-flow: column;
overflow: auto;
justify-content: center;
align-items: center;
top: 0%;
left: 0%;
}

.click-btn {
display: flex;
width: 120px;
height: 40px;
justify-content: center;
align-items: center;
margin: 0.5rem;
line-height: 35px;
border: 1px solid;
border-radius: 5px;
text-align: center;
font-size: 16px;
color: #000;
text-decoration: none;
transition: all 0.35s;
box-sizing: border-box;
}

.buttons-wrapper {
display: flex;
flex-wrap: wrap;
}

.btn-style509 {
position: relative;
background-color: #716eef;
border-color: #716eef;
color: #fff;
}
.btn-style509::before, .btn-style509::after {
width: 49px;
height: 35px;
position: absolute;
border-radius: 50%;
background-color: #4b48cb;
transition: all 0.7s ease;
transform: scale(0);
content: "";
z-index: -1;
}
.btn-style509::before {
top: -8px;
left: 10%;
}
.btn-style509::after {
bottom: -8px;
right: 15%;
}
.btn-style509:hover {
background-color: #4b48cb;
border-color: #4b48cb;
}
.btn-style509:hover::before, .btn-style509:hover::after {
transform: scale(1);
}
1 change: 1 addition & 0 deletions src/Data.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ export const Data = [
"aniketburman014",
"adjascently",
"SyedImtiyazAli",
"AdityaLahane-2003_1"
"mohitparmar1",
"SyedImtiyaz-1",
"Explorer003",
Expand Down

0 comments on commit 995bebd

Please sign in to comment.