logoalt Hacker News

erichoceanyesterday at 4:38 PM2 repliesview on HN

If the author is around, can you do a short writeup on how this implemented? I've got my own immediate-mode UI framework and am curious how you did it.


Replies

SoufianeGfxyesterday at 6:42 PM

The author here. You have various concepts but overall we store the start time and that's it :D the rest are details, clip, tween, easing function, anchor have surviving resizing, stagger to generate the same anim with variations. Or variations of clips, loop. Proper anim of colors in oklab, oklch, linear srgb, hsl, ... Anyway I cannot explain much it's really simple code with a userfriendly front-end.

show 1 reply
hiltiyesterday at 5:46 PM

Not the author but it‘s implemented in only two files which can be studied on Github.