4 ms·
That would be awesome — I have found myself wishing for a similar CSS-only solution. In the meantime, I've resorted to measuring the translation distance in JS,
by semolino 1y ago
That would be awesome — I have found myself wishing for a similar CSS-only solution. In the meantime, I've resorted to measuring the translation distance in JS, and multiplying that by the average duration I want the element to spend in each pixel position (usually a few milliseconds).
- Y-bar 11mo agoI found an actual proposal which is very similar: https://github.com/w3c/csswg-drafts/issues/5091 https://github.com/w3c/csswg-drafts/issues/5091