Skip to content

Commit

Permalink
Fixed Down Button Positioning
Browse files Browse the repository at this point in the history
  • Loading branch information
PrityanshuSingh committed Oct 19, 2024
1 parent 5da21ca commit 2b84568
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
15 changes: 15 additions & 0 deletions assets/css/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,21 @@
}


.scroll-btn{
position: fixed;
right: 120px;
top: 475px;
z-index: 9999;
color: white;
border: none;
border-radius: 50%;
width: 50px;
height: 50px;
font-size: 20px;
cursor: pointer;
transition: background-color 0.3s;
}

.circle {
position: absolute;
width: 25px;
Expand Down
3 changes: 0 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,6 @@

<body>
<div id="progressBar"></div>
<button id="scrollBtn" class="scroll-btn" onclick="scrollToNextSection()">
</button>
<script>
window.onscroll = function () {
var winScroll = document.body.scrollTop || document.documentElement.scrollTop;
Expand Down

0 comments on commit 2b84568

Please sign in to comment.