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:10] – 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 127: | Line 127: | ||
| overflow: hidden; | overflow: hidden; | ||
| text-decoration: | text-decoration: | ||
| - | transition: filter 0.6s ease !important; | + | transition: filter 0.25s ease !important; |
| } | } | ||
| Line 161: | Line 161: | ||
| .js-card.js-fading .js-rgb-canvas { | .js-card.js-fading .js-rgb-canvas { | ||
| opacity: 1; | opacity: 1; | ||
| + | } | ||
| + | |||
| + | /* Block card hover effects when title zone is active */ | ||
| + | .js-wrap.js-title-active .js-card: | ||
| + | transform: scale(1) !important; | ||
| + | filter: brightness(0.6) saturate(0.8) !important; | ||
| + | } | ||
| + | .js-wrap.js-title-active .js-card: | ||
| + | opacity: 1 !important; | ||
| + | } | ||
| + | .js-wrap.js-title-active .js-card: | ||
| + | top: 50% !important; | ||
| + | transform: translateY(-50%) !important; | ||
| + | letter-spacing: | ||
| + | color: #EDE8F5 !important; | ||
| + | text-shadow: | ||
| + | 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 312: | Line 335: | ||
| (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; | ||
| - | let entryTimeout = null; | ||
| const canvases = new Map(); | const canvases = new Map(); | ||
| const animFrames = new Map(); | const animFrames = new Map(); | ||
| Line 339: | Line 363: | ||
| function frame() { | function frame() { | ||
| if (!card.classList.contains(' | if (!card.classList.contains(' | ||
| + | ctx.clearRect(0, | ||
| animFrames.delete(card); | animFrames.delete(card); | ||
| return; | return; | ||
| Line 344: | Line 369: | ||
| ctx.clearRect(0, | ctx.clearRect(0, | ||
| - | // Red channel — shift right | ||
| ctx.save(); | ctx.save(); | ||
| ctx.globalCompositeOperation = ' | ctx.globalCompositeOperation = ' | ||
| Line 352: | Line 376: | ||
| ctx.restore(); | ctx.restore(); | ||
| - | // Blue channel — shift left | ||
| ctx.save(); | ctx.save(); | ||
| ctx.globalCompositeOperation = ' | ctx.globalCompositeOperation = ' | ||
| Line 368: | Line 391: | ||
| } | } | ||
| - | function | + | function |
| - | const rect = card.getBoundingClientRect(); | + | const sub = document.querySelector(' |
| - | const zoneX = rect.width * 0.125; | + | const main = document.querySelector(' |
| - | const zoneY = rect.height * 0.125; | + | const divider |
| - | const x = e.clientX | + | if (!sub || !main) return false; |
| - | const y = e.clientY | + | const top = sub.getBoundingClientRect().top |
| - | return | + | const bottom = (divider || main).getBoundingClientRect().bottom + 20; |
| + | const left = main.getBoundingClientRect().left | ||
| + | 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 380: | 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) { | ||
| Line 392: | 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(' |
| - | if (!entryTimeout) { | + | |
| - | entryTimeout | + | } |
| - | setFading(card); | + | |
| - | | + | wrap.addEventListener(' |
| - | }, 200); | + | if (isTitleZone(e)) { |
| - | } | + | clearTimeout(fadeTimeout); |
| - | } else { | + | 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 && | ||
| + | | ||
| + | | ||
| } | } | ||
| }); | }); | ||
| - | | + | |
| - | clearTimeout(entryTimeout); | + | |
| - | entryTimeout = null; | + | |
| clearTimeout(fadeTimeout); | clearTimeout(fadeTimeout); | ||
| - | | + | |
| - | }); | + | } |
| + | }); | ||
| + | |||
| + | wrap.addEventListener(' | ||
| + | clearTimeout(fadeTimeout); | ||
| + | fadeTimeout = setTimeout(clearFading, | ||
| }); | }); | ||
| })(); | })(); | ||
| </ | </ | ||
| </ | </ | ||