Skip to content
Merged
Show file tree
Hide file tree
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
26 changes: 26 additions & 0 deletions public/AboutUs.html
Original file line number Diff line number Diff line change
Expand Up @@ -217,10 +217,36 @@ <h4>Company</h4>
</div>
</div>
</footer>
<!-- Scroll To Top Button -->
<button id="scrollTopBtn" aria-label="Scroll to top">
<i class="fas fa-arrow-up"></i>
</button>
<!-- Blue Cursor Trail -->
<div class="circle-container" id="cursorTrail"></div>
<script>
/* ============================= */
/* πŸ” Scroll To Top Script */
/* ============================= */

const scrollTopBtn = document.getElementById("scrollTopBtn");

// Show button after scrolling 300px
window.addEventListener("scroll", () => {
if (window.scrollY > 300) {
scrollTopBtn.classList.add("show");
} else {
scrollTopBtn.classList.remove("show");
}
});

// Smooth scroll to top
scrollTopBtn.addEventListener("click", () => {
window.scrollTo({
top: 0,
behavior: "smooth"
});
});
/* ============================= */
/* πŸ”΅ Blue Cursor Trail Script */
/* ============================= */

Expand Down
61 changes: 61 additions & 0 deletions public/aboutus.css
Original file line number Diff line number Diff line change
Expand Up @@ -589,3 +589,64 @@ html{
0 0 8px rgba(0, 123, 255, 0.7),
0 0 16px rgba(0, 123, 255, 0.4);
}
/* ============================= */
/* πŸ” Scroll To Top Button */
/* ============================= */

#scrollTopBtn {
position: fixed;
bottom: 30px;
right: 30px;
z-index: 9999;

width: 50px;
height: 50px;
border-radius: 50%;

border: none;
outline: none;
cursor: pointer;

background: linear-gradient(135deg, #4f46e5, #7c3aed);
color: #fff;
font-size: 18px;

display: flex;
align-items: center;
justify-content: center;

box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
opacity: 0;
visibility: hidden;
transform: translateY(20px);

transition: all 0.3s ease;
}

/* Show Button */
#scrollTopBtn.show {
opacity: 1;
visibility: visible;
transform: translateY(0);
}

/* Hover Effect */
#scrollTopBtn:hover {
transform: translateY(-5px) scale(1.05);
box-shadow: 0 15px 30px rgba(124, 58, 237, 0.5);
}

/* Click Effect */
#scrollTopBtn:active {
transform: scale(0.95);
}

/* Responsive */
@media (max-width: 768px) {
#scrollTopBtn {
bottom: 20px;
right: 20px;
width: 45px;
height: 45px;
}
}