Skip to content

Commit

Permalink
Adding back to top button
Browse files Browse the repository at this point in the history
  • Loading branch information
TeekshaHarish committed Oct 30, 2023
1 parent 54fac5d commit 5745ee6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@



<a href="#"><div class="BackToTop"><img src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTnrB1XJEbDlZ6Gh_chZwXJ7CflXN4PoYzndA&usqp=CAU" alt="Back To Top"></div></a>
<main>

<div class="carouselContainer">
Expand Down
14 changes: 13 additions & 1 deletion styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ html {
overflow-y: scroll;
margin: 0;
padding: 0;
scroll-behavior: smooth;
}
body {
font-family: "Ninja Naruto", arial;
Expand Down Expand Up @@ -138,7 +139,18 @@ body::-webkit-scrollbar-thumb {
box-shadow: 0 5px 50px 0 #15f4ee inset, 0 5px 50px 0 #15f4ee,
0 5px 50px 0 #15f4ee inset, 0 5px 50px 0 #15f4ee;
}

.BackToTop{
position:fixed;
display: flex;
justify-content: center;
align-items: center;
bottom: 30px;
right: 30px;
height: 40px;
width: 40px;
border-radius: 100%;
z-index: 2;
}
.activated {
width: 360px;
}
Expand Down

0 comments on commit 5745ee6

Please sign in to comment.