Skip to content
Snippets Groups Projects
Commit 9c2cc0d5 authored by HouTeng Chan's avatar HouTeng Chan
Browse files

Update file home.html

parent 23ac7f81
No related branches found
No related tags found
No related merge requests found
Pipeline #486112 passed
......@@ -127,51 +127,6 @@
width: 150px;
height: 150px;
}
.scroll-guide {
position: fixed;
bottom: 20px;
right: 25px;
width: 60px;
height: 100px;
background-image: url('https://static.igem.wiki/teams/5187/art/icon.png');
background-size: contain;
background-repeat: no-repeat;
background-position: center;
z-index: 1000;
}
.scroll-line {
position: fixed;
right: 50px;
top: 0;
bottom: 120px;
width: 10px;
background-color: rgba(255, 192, 203, 0.7);
border-radius: 5px;
z-index: 999;
}
.scroll-progress {
position: absolute;
bottom: 0;
width: 100%;
background-color: #FF69B4;
border-radius: 5px;
transition: height 0.3s;
}
.scroll-fragrance {
position: absolute;
bottom: 100%;
left: 50%;
transform: translateX(-50%);
width: 30px;
height: 30px;
background-color: #FF69B4;
border-radius: 50%;
animation: float 2s ease-in-out infinite;
}
@keyframes float {
0%, 100% { transform: translate(-50%, 0); }
50% { transform: translate(-50%, -10px); }
}
.centered-text {
text-align: center;
font-weight: bold;
......@@ -276,19 +231,6 @@
}, 2000);
});
window.addEventListener('scroll', function() {
var scrollGuide = document.querySelector('.scroll-guide');
var scrollPosition = window.scrollY;
var windowHeight = window.innerHeight;
var documentHeight = document.documentElement.scrollHeight;
if (scrollPosition + windowHeight >= documentHeight - 100) {
scrollGuide.style.display = 'none';
} else {
scrollGuide.style.display = 'block';
}
});
function showModal(element) {
var modal = document.getElementById("myModal");
var modalContent = document.getElementById("modalContent");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment