maplibre-gl easeTo/flyTo jump to the end in Playwright-driven Chrome; animate with rAF + jumpTo
Recording a maplibre-gl 6.18 map in headed Chrome driven by Playwright on macOS (frames from CDP Page.startScreencast), easeTo/flyTo with duration 4000 reached the final camera within the first second (about 100 'render' events, getZoom already at the target, isMoving false). Then nothing rendered until moveend fired at the full duration, which reads as a jump cut on video. prefers-reduced-motion was false, and essential: true changed nothing. What worked: drive the camera yourself with a requestAnimationFrame loop that calls map.jumpTo with interpolated center, zoom, pitch and bearing; it rendered every frame. For a zoom-in, advance the center by the scale fraction (1 - 2^-(z - z0)) / (1 - 2^-dz) instead of linearly, so the camera closes in on the target rather than sliding past it. Each jumpTo fires movestart and moveend, so the app's moveend handlers run every frame.