Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Model_4_JOEJOH583_B_Joel-Johnson_SDF04 #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
<body>
<h1>✨ Style Your Buttons ✨</h1>
<p>Apply custom styles to your button in the Style.css file</p>
<button class="custom-btn btn-1">Click Here</button>
<button class="custom-btn btn-2">Click Here</button>
<button class="custom-btn btn-3">Click Here</button>
<button class="custom-btn btn-1">Joel Johnson</button>
<button class="custom-btn btn-2">Kaylin Petersen</button>
<button class="custom-btn btn-3">Mikyle Petersen</button>
</body>
</html>
143 changes: 143 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,147 @@ p {
outline: none;
}

.btn-1 {
background: rgb(0,172,238);
background: linear-gradient(0deg, rgba(0,172,238,1) 0%, rgba(2,126,251,1) 100%);
width: 130px;
height: 40px;
line-height: 42px;
padding: 0;
border: none;

}
.btn-1 span {
position: relative;
display: block;
width: 100%;
height: 100%;
}
.btn-1:before,
.btn-1:after {
position: absolute;
content: "";
right: 0;
top: 0;
background: rgba(2,126,251,1);
transition: all 0.3s ease;
}
.btn-1:before {
height: 0%;
width: 2px;
}
.btn-1:after {
width: 0%;
height: 2px;
}
.btn-1:hover{
background: transparent;
box-shadow: none;
}
.btn-1:hover:before {
height: 100%;
}
.btn-1:hover:after {
width: 100%;
}
.btn-1 span:hover{
color: rgba(2,126,251,1);
}
.btn-1 span:before,
.btn-1 span:after {
position: absolute;
content: "";
left: 0;
bottom: 0;
background: rgba(2,126,251,1);
transition: all 0.3s ease;
}
.btn-1 span:before {
width: 2px;
height: 0%;
}
.btn-1 span:after {
width: 0%;
height: 2px;
}
.btn-1 span:hover:before {
height: 100%;
}
.btn-1 span:hover:after {
width: 100%;
}
/*btn 1*/
.btn-2{
width: 130px;
height: 40px;
line-height: 42px;
padding: 0;
border: none;
background: rgb(255,27,0);
background: linear-gradient(0deg, rgba(255,27,0,1) 0%, rgba(251,75,2,1) 100%);
}
.btn-2:hover {
color: #f0094a;
background: transparent;
box-shadow:none;
}
.btn-2:before,
.btn-2:after{
content:'';
position:absolute;
top:0;
right:0;
height:2px;
width:0;
background: #f0094a;
box-shadow:
-1px -1px 5px 0px #fff,
7px 7px 20px 0px #0003,
4px 4px 5px 0px #0002;
transition:400ms ease all;
}
.btn-2:after{
right:inherit;
top:inherit;
left:0;
bottom:0;
}
.btn-2:hover:before,
.btn-2:hover:after{
width:100%;
transition:800ms ease all;
}
/* btn 2*/
.btn-3{
background: rgb(22,9,240);
background: linear-gradient(0deg, rgba(22,9,240,1) 0%, rgba(49,110,244,1) 100%);
color: #fff;
border: none;
transition: all 0.3s ease;
overflow: hidden;
}
.btn-3:after {
position: absolute;
content: " ";
top: 0;
left: 0;
z-index: -1;
width: 100%;
height: 100%;
transition: all 0.3s ease;
-webkit-transform: scale(.1);
transform: scale(.1);
}
.btn-3:hover {
color: #fff;
border: none;
background: transparent;
}
.btn-3:hover:after {
background: rgb(0,3,255);
background: linear-gradient(0deg, rgba(2,126,251,1) 0%, rgba(0,3,255,1)100%);
-webkit-transform: scale(1);
transform: scale(1);
}

/* Add your custom styles for btn-1, btn-2, and btn-3 */