Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| start [2026/06/11 21:02] – jumpstartadmin | start [2026/06/11 21:28] (current) – jumpstartadmin | ||
|---|---|---|---|
| Line 57: | Line 57: | ||
| .js-card: | .js-card: | ||
| - | .js-label { position: absolute; left: 0; width: 100%; z-index: 3; padding: 16px; font-family: | + | .js-label { position: absolute; left: 0; width: 100%; z-index: 3; padding: 16px; font-family: |
| .js-card: | .js-card: | ||
| Line 97: | Line 97: | ||
| } | } | ||
| - | .js-title-sub { font-family: | + | .js-title-sub { font-family: |
| - | .js-title-main { font-family: | + | .js-title-main { font-family: |
| .js-title-divider { display: flex; align-items: | .js-title-divider { display: flex; align-items: | ||
| Line 121: | Line 121: | ||
| .js-card: | .js-card: | ||
| - | /* Non-hovered cards — analog TV signal, | + | /* VHS chromatic aberration |
| .js-card { | .js-card { | ||
| position: relative; | position: relative; | ||
| Line 127: | Line 127: | ||
| overflow: hidden; | overflow: hidden; | ||
| text-decoration: | text-decoration: | ||
| - | transition: filter | + | transition: filter |
| } | } | ||
| .js-card.js-fading { | .js-card.js-fading { | ||
| - | filter: saturate(0.2) brightness(0.88) contrast(0.85) !important; | + | filter: saturate(0.55) brightness(0.92) !important; |
| } | } | ||
| + | /* Scanline overlay on fading cards */ | ||
| .js-card.js-fading:: | .js-card.js-fading:: | ||
| - | content: ''; | + | content: '' |
| - | position: absolute; | + | position: absolute |
| - | inset: 0; | + | inset: 0 !important; |
| - | z-index: | + | z-index: |
| - | pointer-events: | + | pointer-events: |
| background: repeating-linear-gradient( | background: repeating-linear-gradient( | ||
| 0deg, | 0deg, | ||
| transparent 0px, | transparent 0px, | ||
| transparent 3px, | transparent 3px, | ||
| - | rgba(255,255,255,0.016) 3px, | + | rgba(0, 0, 0, 0.08) 3px, |
| - | rgba(255,255,255,0.016) 4px | + | rgba(0, 0, 0, 0.08) 4px |
| - | ); | + | ) !important; |
| - | animation: analogRoll 5s linear infinite; | + | |
| } | } | ||
| - | @keyframes analogRoll | + | /* RGB canvas overlay */ |
| - | 0% { background-position: 0 0; } | + | .js-rgb-canvas |
| - | | + | |
| + | inset: | ||
| + | z-index: 11; | ||
| + | pointer-events: | ||
| + | opacity: 0; | ||
| + | transition: opacity 0.6s ease; | ||
| + | } | ||
| + | .js-card.js-fading .js-rgb-canvas | ||
| + | opacity: 1; | ||
| + | } | ||
| + | |||
| + | /* Block card hover effects when title zone is active */ | ||
| + | .js-wrap.js-title-active .js-card:hover video { | ||
| + | transform: scale(1) !important; | ||
| + | filter: brightness(0.6) saturate(0.8) !important; | ||
| + | } | ||
| + | .js-wrap.js-title-active .js-card: | ||
| + | | ||
| + | } | ||
| + | .js-wrap.js-title-active .js-card: | ||
| + | top: 50% !important; | ||
| + | transform: translateY(-50%) !important; | ||
| + | letter-spacing: | ||
| + | color: #EDE8F5 !important; | ||
| + | text-shadow: 0 1px 0 rgba(0, | ||
| + | opacity: 0.7 !important; | ||
| + | } | ||
| + | .js-wrap.js-title-active .js-card: | ||
| + | transform: translateX(-50%) scaleX(0) !important; | ||
| + | } | ||
| + | .js-wrap.js-title-active .js-card: | ||
| + | opacity: 0 !important; | ||
| } | } | ||
| Line 301: | Line 332: | ||
| < | < | ||
| - | // Analog fade — only triggers when mouse is in the center 75% of a card | + | // VHS RGB chromatic aberration using canvas |
| (function() { | (function() { | ||
| const cards = document.querySelectorAll(' | const cards = document.querySelectorAll(' | ||
| + | const wrap = document.querySelector(' | ||
| + | const titleEl = document.querySelector(' | ||
| let activeCard = null; | let activeCard = null; | ||
| let fadeTimeout = null; | let fadeTimeout = null; | ||
| + | const canvases = new Map(); | ||
| + | const animFrames = new Map(); | ||
| - | | + | |
| - | const rect = card.getBoundingClientRect(); | + | cards.forEach(card => { |
| - | const zoneX = rect.width | + | const canvas = document.createElement(' |
| - | const zoneY = rect.height * 0.125; | + | canvas.className = ' |
| - | const x = e.clientX | + | card.appendChild(canvas); |
| - | const y = e.clientY | + | canvases.set(card, |
| - | return | + | }); |
| + | |||
| + | function drawRGB(card) { | ||
| + | const canvas = canvases.get(card); | ||
| + | const video = card.querySelector(' | ||
| + | if (!video || !canvas) return; | ||
| + | |||
| + | const w = card.offsetWidth; | ||
| + | const h = card.offsetHeight; | ||
| + | canvas.width | ||
| + | canvas.height = h; | ||
| + | const ctx = canvas.getContext(' | ||
| + | |||
| + | function frame() { | ||
| + | if (!card.classList.contains(' | ||
| + | ctx.clearRect(0, 0, w, h); | ||
| + | animFrames.delete(card); | ||
| + | return; | ||
| + | } | ||
| + | ctx.clearRect(0, | ||
| + | |||
| + | ctx.save(); | ||
| + | ctx.globalCompositeOperation = ' | ||
| + | ctx.globalAlpha = 0.18; | ||
| + | ctx.filter = ' | ||
| + | ctx.drawImage(video, | ||
| + | ctx.restore(); | ||
| + | |||
| + | ctx.save(); | ||
| + | ctx.globalCompositeOperation = ' | ||
| + | ctx.globalAlpha = 0.14; | ||
| + | ctx.filter = ' | ||
| + | ctx.drawImage(video, | ||
| + | ctx.restore(); | ||
| + | |||
| + | animFrames.set(card, | ||
| + | } | ||
| + | |||
| + | if (!animFrames.has(card)) { | ||
| + | animFrames.set(card, | ||
| + | } | ||
| + | } | ||
| + | |||
| + | function isTitleZone(e) { | ||
| + | const sub = document.querySelector(' | ||
| + | const main = document.querySelector(' | ||
| + | const divider | ||
| + | if (!sub || !main) return false; | ||
| + | const top = sub.getBoundingClientRect().top - 20; | ||
| + | const bottom = (divider || main).getBoundingClientRect().bottom + 20; | ||
| + | const left = main.getBoundingClientRect().left - 40; | ||
| + | const right = main.getBoundingClientRect().right + 40; | ||
| + | return | ||
| + | | ||
| + | } | ||
| + | |||
| + | function setTitleGlow(on) { | ||
| + | if (!titleEl) return; | ||
| + | if (on) { | ||
| + | titleEl.style.transition = 'text-shadow 0.3s ease'; | ||
| + | titleEl.style.textShadow = '0 0 120px rgba(184, | ||
| + | titleEl.style.color = '# | ||
| + | } else { | ||
| + | titleEl.style.transition = ' | ||
| + | titleEl.style.textShadow = ''; | ||
| + | titleEl.style.color = ''; | ||
| + | } | ||
| } | } | ||
| Line 319: | Line 420: | ||
| if (activeCard === hoveredCard) return; | if (activeCard === hoveredCard) return; | ||
| activeCard = hoveredCard; | activeCard = hoveredCard; | ||
| + | setTitleGlow(false); | ||
| + | wrap.classList.remove(' | ||
| cards.forEach(card => { | cards.forEach(card => { | ||
| if (card !== hoveredCard) { | if (card !== hoveredCard) { | ||
| card.classList.add(' | card.classList.add(' | ||
| + | drawRGB(card); | ||
| } else { | } else { | ||
| card.classList.remove(' | card.classList.remove(' | ||
| Line 330: | Line 434: | ||
| function clearFading() { | function clearFading() { | ||
| activeCard = null; | activeCard = null; | ||
| + | setTitleGlow(false); | ||
| + | wrap.classList.remove(' | ||
| cards.forEach(card => card.classList.remove(' | cards.forEach(card => card.classList.remove(' | ||
| } | } | ||
| - | cards.forEach(card => { | + | |
| - | | + | activeCard = ' |
| - | if (isInCenterZone(card, e)) { | + | setTitleGlow(true); |
| - | clearTimeout(fadeTimeout); | + | wrap.classList.add(' |
| - | | + | |
| - | } else { | + | } |
| - | | + | |
| + | wrap.addEventListener(' | ||
| + | if (isTitleZone(e)) { | ||
| + | clearTimeout(fadeTimeout); | ||
| + | if (activeCard !== ' | ||
| + | | ||
| + | | ||
| + | |||
| + | // Find which card the mouse is over | ||
| + | let overCard = null; | ||
| + | cards.forEach(card => { | ||
| + | const rect = card.getBoundingClientRect(); | ||
| + | if (e.clientX >= rect.left && e.clientX <= rect.right && | ||
| + | e.clientY >= rect.top && e.clientY <= rect.bottom) { | ||
| + | overCard = card; | ||
| } | } | ||
| }); | }); | ||
| - | | + | |
| - | fadeTimeout = setTimeout(clearFading, | + | clearTimeout(fadeTimeout); |
| - | }); | + | setFading(overCard); |
| + | } | ||
| + | }); | ||
| + | |||
| + | wrap.addEventListener(' | ||
| + | | ||
| + | | ||
| }); | }); | ||
| })(); | })(); | ||
| </ | </ | ||
| </ | </ | ||