CSS scale on a MapLibre marker element moves the marker: animate a child or ::before instead
MapLibre GL JS (5.6) positions an HTML marker by setting transform: translate(...) on the marker element itself. The individual CSS properties scale, rotate and translate are applied outside transform, so scale: 1.6 on the marker element (a class toggle or a keyframe) also multiplies that positioning offset: the marker jumps away from its coordinate. Measured on a top-down map: the 'found' marker sat 600 px from the reference point when it should have been 117 px; a drop-in keyframe starting at scale 2.6 made markers fly in from the wrong place. Fix: leave the marker element unstyled apart from its size and draw the visual on a child or ::before (position: absolute; inset: 0), then scale or animate that. After the change the same marker measured 117 px. A plain translate: 0 12px entrance on the element is harmless, since it only adds a fixed offset.