fix: smooth zoom reveal on product panel image
This commit is contained in:
parent
0e07c4acd6
commit
15d7f856cb
@ -401,13 +401,13 @@ document.addEventListener('DOMContentLoaded', () => {
|
|||||||
0.6
|
0.6
|
||||||
);
|
);
|
||||||
|
|
||||||
// 7. Panel image — simple fade in, no scan/filter effect
|
// 7. Panel image — smooth zoom reveal
|
||||||
const panelImg = document.getElementById('panel-img');
|
const panelImg = document.getElementById('panel-img');
|
||||||
if (panelImg) {
|
if (panelImg) {
|
||||||
techTimeline.fromTo(panelImg,
|
techTimeline.fromTo(panelImg,
|
||||||
{ opacity: 0 },
|
{ opacity: 0, scale: 1.06 },
|
||||||
{ opacity: 0.92, duration: 0.8, ease: 'power2.out' },
|
{ opacity: 0.92, scale: 1, duration: 1.2, ease: 'power2.out' },
|
||||||
0.05
|
0
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user