Skip to content

Commit

Permalink
Merge pull request #766 from ZainabR11/hack-1
Browse files Browse the repository at this point in the history
Animated Hover Button
  • Loading branch information
aniketsinha2002 authored Oct 4, 2023
2 parents 4172376 + 1cc1181 commit 80d5409
Show file tree
Hide file tree
Showing 4 changed files with 679 additions and 34 deletions.
1 change: 1 addition & 0 deletions DataScienceWebsite.github.io
Submodule DataScienceWebsite.github.io added at 417237
52 changes: 40 additions & 12 deletions courses.css
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ body {
color: var(--color-white);
background: #071f30;
}

.container {
width: var(--container-width-lg);
margin: 0 auto;
Expand Down Expand Up @@ -91,8 +90,37 @@ img {
display: block;
object-fit: cover;
}
/* HOVER ANIMATED BUTTON */
/* .container1{
display: flex;
flex-direction: row;
justify-content: space-evenly;
align-items: center;
text-align: center;
min-height: 100vh;
}
.hack1{
width: 300px;
height: 100px;
border: none;
color: white;
background-color: rgb(231, 18, 53);
border-radius: 4px;
box-shadow: inset 0 0 0 0 yellow;
transition: ease-out 0.3s;
font-size: 2rem;
outline: none;
}
.hack1:hover{
box-shadow: inset 300px 0 0 yellow;
cursor: pointer;
color: black; */

.btn {
/* } */

/* .btn {
display: inline-block;
border-color: rgb(121, 116, 116);
background-color: rgba(157, 147, 147, 0.562);
Expand All @@ -101,15 +129,15 @@ img {
border-right: 1px solid;
font-weight: 500;
transition: var(--transition);
}
}
.btn:hover {
background: transparent;
color: var(--color-white);
border-color: var(--color-white);
}
} */

.btn-primary {
/* .btn-primary {
background: var(--color-define);
color: var(--color-white);
border-radius: 30px;
Expand All @@ -120,9 +148,9 @@ img {
border-top: 3px solid;
border-right: 3px solid;
border-color: #761142b1;
}
} */

.button a span {
/* .button a span {
position: relative;
display: inline-block;
font-size: 18px;
Expand All @@ -133,9 +161,9 @@ img {
letter-spacing: 2px;
font-weight: 500;
margin-top: 60px;
}
} */

.button a span:before {
/* .button a span:before {
content: "";
position: absolute;
top: 0;
Expand All @@ -146,11 +174,11 @@ img {
background-color: #ff960b;
z-index: -1;
transition: all ease 0.5s;
}

} */
/*
.button a span:hover:before {
width: 100%;
}
} */

.imgg img {
position: relative;
Expand Down
Loading

0 comments on commit 80d5409

Please sign in to comment.