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

Adding back to top button #946

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
Adding back to top button
TeekshaHarish committed Oct 30, 2023
commit 5745ee6f146bf92b8a139d7d3bc8011eb0ae6fb0
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -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">
14 changes: 13 additions & 1 deletion styles.css
Original file line number Diff line number Diff line change
@@ -2,6 +2,7 @@ html {
overflow-y: scroll;
margin: 0;
padding: 0;
scroll-behavior: smooth;
}
body {
font-family: "Ninja Naruto", arial;
@@ -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;
}