🔥 近期更新项
🎉 近期活动
🎊 常驻活动
🔥 彩虹岛之家
🔥 热门功能区直达
<script src="latalewd/zhe.js"></script>
<script>
// 导航栏滚动效果
window.addEventListener('scroll', function() {
const nav = document.querySelector('.nav');
if (window.scrollY > 50) {
nav.classList.add('scrolled');
} else {
nav.classList.remove('scrolled');
}
});
// 滚动显示动画
function checkReveal() {
const reveals = document.querySelectorAll('.reveal');
const windowHeight = window.innerHeight;
reveals.forEach(element => {
const revealtop = element.getBoundingClientRect().top;
const revealpoint = 150;
if (revealtop < windowHeight - revealpoint) {
element.classList.add('active');
}
});
}
window.addEventListener('scroll', checkReveal);
checkReveal(); // 初始检查
</script>
没有更多啦