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:05] – 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 — 90s TV RGB artifact, | + | /* 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 0.4s ease !important; | + | transition: filter 0.25s ease !important; |
| } | } | ||
| .js-card.js-fading { | .js-card.js-fading { | ||
| - | filter: saturate(0.6) brightness(0.95) contrast(1.05) !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: |
| - | /* RGB channel split — red shifts right, blue shifts left */ | + | background: repeating-linear-gradient( |
| - | background: | + | 0deg, |
| - | | + | transparent 0px, |
| - | 0deg, | + | transparent |
| - | transparent 0px, | + | rgba(0, 0, 0, 0.08) 3px, |
| - | transparent | + | rgba(0, 0, 0, 0.08) 4px |
| - | rgba(255, 0, 60, 0.04) 2px, | + | ) !important; |
| - | rgba(255, 0, 60, 0.04) 3px, | + | |
| - | | + | |
| - | transparent 5px, | + | |
| - | | + | |
| - | rgba(0, 60, 255, 0.04) 6px | + | |
| - | ); | + | |
| - | mix-blend-mode: | + | |
| - | animation: rgbRoll 2.5s linear infinite; | + | |
| } | } | ||
| - | /* Second layer — horizontal | + | /* RGB canvas overlay |
| - | .js-card.js-fading:: | + | .js-rgb-canvas |
| - | content: ''; | + | |
| position: absolute; | position: absolute; | ||
| inset: 0; | inset: 0; | ||
| z-index: 11; | z-index: 11; | ||
| pointer-events: | pointer-events: | ||
| - | | + | |
| - | 0deg, | + | |
| - | transparent 0px, | + | } |
| - | transparent 8px, | + | .js-card.js-fading .js-rgb-canvas { |
| - | rgba(255, 100, 0, 0.025) 8px, | + | |
| - | | + | |
| - | ); | + | |
| - | mix-blend-mode: screen; | + | |
| - | | + | |
| } | } | ||
| - | @keyframes rgbRoll { | + | /* Block card hover effects when title zone is active */ |
| - | | + | .js-wrap.js-title-active .js-card:hover video { |
| - | | + | transform: |
| - | | + | |
| } | } | ||
| - | + | .js-wrap.js-title-active .js-card: | |
| - | @keyframes rgbDrift | + | |
| - | | + | } |
| - | | + | .js-wrap.js-title-active .js-card: |
| + | | ||
| + | transform: translateY(-50%) !important; | ||
| + | letter-spacing: 4px !important; | ||
| + | color: #EDE8F5 !important; | ||
| + | text-shadow: 0 1px 0 rgba(0, | ||
| + | opacity: 0.7 !important; | ||
| + | } | ||
| + | .js-wrap.js-title-active .js-card: | ||
| + | | ||
| + | } | ||
| + | .js-wrap.js-title-active .js-card: | ||
| + | opacity: 0 !important; | ||
| } | } | ||
| Line 332: | 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 350: | 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(' | ||
| - | | + | |
| } else { | } else { | ||
| card.classList.remove(' | card.classList.remove(' | ||
| - | card.classList.add(' | ||
| } | } | ||
| }); | }); | ||
| Line 363: | Line 434: | ||
| function clearFading() { | function clearFading() { | ||
| activeCard = null; | activeCard = null; | ||
| - | | + | |
| - | card.classList.remove(' | + | wrap.classList.remove(' |
| - | 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 && | ||
| + | | ||
| + | overCard = card; | ||
| } | } | ||
| }); | }); | ||
| - | | + | |
| clearTimeout(fadeTimeout); | clearTimeout(fadeTimeout); | ||
| - | | + | |
| - | }); | + | } |
| + | }); | ||
| + | |||
| + | wrap.addEventListener(' | ||
| + | clearTimeout(fadeTimeout); | ||
| + | fadeTimeout = setTimeout(clearFading, | ||
| }); | }); | ||
| })(); | })(); | ||
| </ | </ | ||
| </ | </ | ||