Skip to content

Commit

Permalink
back to top animated #1030
Browse files Browse the repository at this point in the history
  • Loading branch information
harshita-2003 committed Jul 2, 2023
1 parent daf1e4d commit b91f37d
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/styles/BackToTop.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,23 @@
cursor: pointer;
color: white;
background-color: #1f1f1f;
animation:animate 4s alternate infinite;
}

@keyframes animate{
0%,100%{
transform: translateY(0px);
}
50%{
transform: translateY(10px);
}
}

.backToTopButton:hover{
opacity:90%;
box-shadow: 2px 2px 2px rgba(0,0,0,0.5);
}

.backToTopButton i {
font-size: 24px;
}
Expand Down

0 comments on commit b91f37d

Please sign in to comment.