diff --git a/Views/Home/Index.cshtml b/Views/Home/Index.cshtml
index d471b76..438e5c3 100644
--- a/Views/Home/Index.cshtml
+++ b/Views/Home/Index.cshtml
@@ -672,6 +672,14 @@
+
+
+
+
+
@section Styles {
}
@@ -863,7 +871,7 @@
rootMargin: '0px 0px -50px 0px'
};
- const observer = new IntersectionObserver(function(entries) {
+ const observer = new IntersectionObserver(function (entries) {
entries.forEach(entry => {
if (entry.isIntersecting) {
entry.target.classList.add('animate-fade-in');
@@ -896,5 +904,25 @@
});
});
})();
+
+ // Scroll-to-top floating action button
+ (function () {
+ const scrollFab = document.getElementById('scrollTopFab');
+ if (!scrollFab) return;
+
+ const toggleVisibility = () => {
+ scrollFab.classList.toggle('hidden', window.scrollY < 300);
+ };
+
+ toggleVisibility();
+ window.addEventListener('scroll', toggleVisibility);
+
+ scrollFab.addEventListener('click', () => {
+ window.scrollTo({
+ top: 0,
+ behavior: 'smooth'
+ });
+ });
+ })();
-}
\ No newline at end of file
+}