erst einblenden wenn ganz nach unten gescrollt wird
Browse files128 unmodified lines12913013113213213313413515 unmodified lines151152153154155156157158159160161162163164165166167168128 unmodified lines </div></div> </main> <div class="fixed bottom-0 left-0 right-0 bg-black bg-opacity-50 py-2 fade-in" style="animation-delay: 0.8s"> <div class="fixed bottom-0 left-0 right-0 bg-black bg-opacity-50 py-2 opacity-0 transition-opacity duration-500" id="socialBar"><div class="container mx-auto px-4 flex justify-center space-x-6"> <a href="https://m.me/christian.raith.12" class="text-blue-300 hover:text-white text-2xl transition-all duration-200 transform hover:scale-125"> <i class="fab fa-facebook-square"></i>15 unmodified lines </a> </div> </div> <script> const socialBar = document.getElementById('socialBar'); window.addEventListener('scroll', () => { if ((window.innerHeight + window.scrollY) >= document.body.offsetHeight) { socialBar.classList.remove('opacity-0'); socialBar.classList.add('opacity-100'); } else { socialBar.classList.remove('opacity-100'); socialBar.classList.add('opacity-0'); } }); </script></body></html>index.html+14-1