Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Apoorva-Kale authored Jun 3, 2019
1 parent e342ca6 commit 4a41d6e
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 0 deletions.
59 changes: 59 additions & 0 deletions brick-button.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
body{
margin: 0;
padding: 0;
background: #262626;
}

a{
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
padding: 15px 30px;
text-transform: uppercase;
text-decoration: none;
color: #fff;
letter-spacing: 2px;
font-size: 20px;
}

a:before{
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: #B22222;
z-index: -1;
transition: transform 0.5s;
transform-origin: bottom right;
transform: scale(0);
}

a:hover:before{
transition: transform 0.5s;
transform-origin: top left;
transform: scale(1);
}

a:after{
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: transparent;
border: 2px solid #fff;
z-index: -1;
transition: transform 0.5s;
transform-origin: bottom left;
transform: scale(1);
}

a:hover:after{
transition: transform 0.5s;
transform-origin: bottom right;
transform: scale(0);
}
10 changes: 10 additions & 0 deletions brick-button.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<!DOCTYPE html>
<html>
<head>
<title>Brick Button</title>
<link rel="stylesheet" type="text/css" href="brick-button.css">
</head>
<body>
<a href="">Button</a>
</body>
</html>

0 comments on commit 4a41d6e

Please sign in to comment.