fix: remove scan effect on product panel image
This commit is contained in:
parent
5257e53487
commit
0e07c4acd6
@ -779,8 +779,8 @@ hr { border: none; border-top: var(--border); margin: 0; }
|
|||||||
top: 0;
|
top: 0;
|
||||||
}
|
}
|
||||||
.tech-visible .tech-scanline {
|
.tech-visible .tech-scanline {
|
||||||
animation: techScanLine 1s ease-in-out forwards;
|
/* disabled — scan effect removed for cleaner look */
|
||||||
animation-delay: 0.1s;
|
opacity: 0;
|
||||||
}
|
}
|
||||||
@keyframes techScanLine {
|
@keyframes techScanLine {
|
||||||
0% { top: 0%; opacity: 1; }
|
0% { top: 0%; opacity: 1; }
|
||||||
|
|||||||
@ -353,12 +353,8 @@ document.addEventListener('DOMContentLoaded', () => {
|
|||||||
0
|
0
|
||||||
);
|
);
|
||||||
|
|
||||||
// 2. Scan line sweeps
|
// 2. Scan line — disabled for cleaner look
|
||||||
techTimeline.fromTo(scanline,
|
gsap.set(scanline, { opacity: 0 });
|
||||||
{ top: '0%', opacity: 1 },
|
|
||||||
{ top: '100%', opacity: 0, duration: 1.1, ease: 'power2.inOut' },
|
|
||||||
0
|
|
||||||
);
|
|
||||||
|
|
||||||
// 3. Corner brackets draw in (scale from corner)
|
// 3. Corner brackets draw in (scale from corner)
|
||||||
corners.forEach((c, i) => {
|
corners.forEach((c, i) => {
|
||||||
@ -405,13 +401,12 @@ document.addEventListener('DOMContentLoaded', () => {
|
|||||||
0.6
|
0.6
|
||||||
);
|
);
|
||||||
|
|
||||||
// 7. Panel image scan reveal — subtle
|
// 7. Panel image — simple fade in, no scan/filter effect
|
||||||
const panelImg = document.getElementById('panel-img');
|
const panelImg = document.getElementById('panel-img');
|
||||||
if (panelImg) {
|
if (panelImg) {
|
||||||
techTimeline.fromTo(panelImg,
|
techTimeline.fromTo(panelImg,
|
||||||
{ clipPath: 'inset(0 0 100% 0)', filter: 'brightness(1.05) grayscale(30%)' },
|
{ opacity: 0 },
|
||||||
{ clipPath: 'inset(0 0 0% 0)', filter: 'brightness(1) contrast(1) grayscale(0%)',
|
{ opacity: 0.92, duration: 0.8, ease: 'power2.out' },
|
||||||
duration: 1, ease: 'power3.out' },
|
|
||||||
0.05
|
0.05
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user