You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/* 3D Tilt on Hover — adds depth to cards/panels */classTiltEffect{constructor(element){this.element=element;this.element.style.transformStyle='preserve-3d';this.element.style.perspective='1000px';this.element.addEventListener('mousemove',(e)=>{constrect=this.element.getBoundingClientRect();constx=(e.clientX-rect.left)/rect.width-0.5;consty=(e.clientY-rect.top)/rect.height-0.5;this.element.style.transform=`rotateY(${x*10}deg) rotateX(${-y*10}deg)`;});this.element.addEventListener('mouseleave',()=>{this.element.style.transform='rotateY(0) rotateX(0)';});}}
Troubleshooting
Problem
Fix
Fonts not loading
Check Fontshare/Google Fonts URL; ensure font names match in CSS
Animations not triggering
Verify Intersection Observer is running; check .visible class is being added
Scroll snap not working
Ensure scroll-snap-type: y mandatory on html; each slide needs scroll-snap-align: start
Mobile issues
Disable heavy effects at 768px breakpoint; test touch events; reduce particle count
Performance issues
Use will-change sparingly; prefer transform/opacity animations; throttle scroll handlers