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:
Vance Ingalls
2026-05-15 13:56:33 -07:00
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");
}