Skip to content

Commit

Permalink
Merge pull request #6 from snehildeep/main
Browse files Browse the repository at this point in the history
CSS_SAMPLE_7
  • Loading branch information
mailtodanish committed Oct 7, 2022
2 parents 64ac23d + 3241739 commit 04d99c7
Showing 1 changed file with 69 additions and 0 deletions.
69 changes: 69 additions & 0 deletions CSS_SAMPLE_7.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
<a href="#">Hover Me</a>

<style> body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background: rgb(58, 56, 56);
}
a {
text-decoration: none;
border: 3px solid yellow;
color: transparent;
padding: 40px 80px;
font-size: 28px;
font-family: sans-serif;
letter-spacing: 5px;
transition: all 0.5s;
position: relative;
}
a:before {
content: "Hover Me";
display: flex;
justify-content: center;
align-items: center;
color: yellow;
background: rgb(34, 34, 34);
font-size: 28px;
top: 0;
left: 100%;
font-family: sans-serif;
letter-spacing: 5px;
transition: all 1s;
height: 100%;
width: 100%;
position: absolute;
transform: scale(0) rotatey(0);
opacity: 0;
}
a:hover:before {
transform: scale(1) rotatey(360deg);
left: 0;
opacity: 1;
}
a:after {
content: "Hover Me";
display: flex;
justify-content: center;
align-items: center;
color: yellow;
background: rgb(34, 34, 34);
font-size: 28px;
top: 0;
left: 0;
font-family: sans-serif;
letter-spacing: 5px;
transition: all 1s;
height: 100%;
width: 100%;
position: absolute;
transform: scale(1) rotatey(0);
opacity: 1;
}
a:hover:after {
transform: scale(0) rotatey(360deg);
left: -100%;
opacity: 0;
}
</style>

0 comments on commit 04d99c7

Please sign in to comment.