Skip to content

Commit

Permalink
Merge pull request #19 from Lavish-Bansal/button
Browse files Browse the repository at this point in the history
ShinyButtonHoverEffect
  • Loading branch information
pulkit-30 authored Sep 9, 2021
2 parents e68240a + 25aaf74 commit 22c96f4
Show file tree
Hide file tree
Showing 5 changed files with 61 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
| Hamburger Animation | https://pulkit203.github.io/Hamburger-Animtion/ |
| Drop Effect | https://palaksharma23.github.io/Drop-Effect/ |
| Scroll Animation | https://pulkit203.github.io/Scroll-Animation/ |

| Shiny Button Hover Effect | https://lavishbansal17.github.io/Shiny-Button-Hover-Effect/|
---

![Project Intro Gif](./Gif.gif)
Expand Down
Binary file added Shiny Button Hover Effect/image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions Shiny Button Hover Effect/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!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>Shiny Button Hover Effect</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<a href="#">Shiny Button</a>
<a href="#">Shiny Button</a>
</body>
</html>
2 changes: 2 additions & 0 deletions Shiny Button Hover Effect/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Shiny Button Hover Effect
<img src="image.png">
44 changes: 44 additions & 0 deletions Shiny Button Hover Effect/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
*{
margin: 0;
padding: 0;
font-family: consoles;
}
body{
display: flex;
justify-content: center;
min-height: 100vh;
align-items: center;
flex-direction: column;
background: #19011d;
}
a{
position: relative;
padding: 15px 30px;
margin: 10px;
background: #35003d;
color: #fff;
text-decoration: none;
letter-spacing: 1px;
border: 1px solid #000;
transition: 0.5s;
overflow: hidden;
}
a:hover{
background: #a41ee9;
}
a:nth-child(2):hover{
background: #ff3c7f;
}
a::before{
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg,transparent,#fff,transparent);
transition: 0.5s;
}
a:hover::before{
left: 100%;
}

0 comments on commit 22c96f4

Please sign in to comment.