UNSERE PROJEKTE

Hier sind einige unserer letzten Projekte.
zum anzeigen klicken

script> const body = document.body, scrollWrap = document.getElementsByClassName("hour")[0], height = scrollWrap.getBoundingClientRect().height - 1, speed = 0.3; var offset = 0; body.style.height = Math.floor(height) + "px"; function smoothScroll() { offset += (window.pageYOffset - offset) * speed; var scroll = "translateY(-" + offset + "px) translateZ(0)"; scrollWrap.style.transform = scroll; callScroll = requestAnimationFrame(smoothScroll); } smoothScroll(); const content = document.querySelector(".mainwrapper"); let currentPos = window.pageYOffset; const callDistort = function () { const newPos = window.pageYOffset; const diff = newPos - currentPos; const speed = diff * 0.3; content.style.transform = "skewY(" + speed + "deg)"; currentPos = newPos; requestAnimationFrame(callDistort); }; callDistort(); /script>