mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-17 23:47:33 +00:00
fix(skills): flip transform-origin direction for card zoom
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
9be255febf
commit
3e673b812e
@@ -591,8 +591,8 @@ function selectTemplate(slug) {
|
||||
var cy = rect.top + rect.height / 2;
|
||||
var vw = window.innerWidth;
|
||||
var vh = window.innerHeight;
|
||||
var ox = ((vw / 2 - cx) / rect.width * 100 + 50) + "%";
|
||||
var oy = ((vh / 2 - cy) / rect.height * 100 + 50) + "%";
|
||||
var ox = ((cx - vw / 2) / rect.width * 100 + 50) + "%";
|
||||
var oy = ((cy - vh / 2) / rect.height * 100 + 50) + "%";
|
||||
card.style.transformOrigin = ox + " " + oy;
|
||||
card.classList.add("selected-exit");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user