Files
ed 30da767d56
Deploy Quartz site to GitHub Pages / build (push) Canceled after 0s
Deploy Quartz site to GitHub Pages / deploy (push) Canceled after 0s
lots
2026-11-16 09:59:30 -05:00

2.7 KiB

title, type, source, source_url, author, handle, post_id, date, archived, draft, tags, description, in_reply_to
title type source source_url author handle post_id date archived draft tags description in_reply_to
Had a quick try at replicating these nice animations using clay's transition API, was a lot of fun and also helped me find a bug in the layout algo! archive twitter https://x.com/nicbarkeragain/status/2087745896478101882 Nic Barker nicbarkeragain 2087745896478101882 2026-08-13 2026-11-16 false
archive
twitter
nicbarkeragain
Had a quick try at replicating these nice animations using clay's transition API, was a lot of fun and also helped me find a bug in the layout algo!

Source

Thread

1/ @nicbarkeragain ^2087745896478101882

Had a quick try at replicating these nice animations using clay's transition API, was a lot of fun and also helped me find a bug in the layout algo!

Branches: archive/threads/nicbarkeragain/2026-08-13-had-a-quick-try-at-replicating-these-nice/2026-08-13-reybuzzed-sir-is-this-an-update-like-how, archive/threads/nicbarkeragain/2026-08-13-had-a-quick-try-at-replicating-these-nice/2026-08-13-always_maap-would-be-nice-to-share-the-example-code, archive/threads/nicbarkeragain/2026-08-13-had-a-quick-try-at-replicating-these-nice/2026-08-13-NateHelmig-https-github-com-nhlmg93-term-if-you-want-to, archive/threads/nicbarkeragain/2026-08-13-had-a-quick-try-at-replicating-these-nice/2026-08-14-rismanrp26-clay-browser-when, archive/threads/nicbarkeragain/2026-08-13-had-a-quick-try-at-replicating-these-nice/2026-08-15-SwirlsDefy-is-clay-officially-unmaintained-now-i-see-there

2/ @nicbarkeragain ^2087746762081817013

I find it very easy to think about animations using this type of mental model, you just mark the properties for transition, declare two different layouts on two consecutive frames (with matching IDs), and the internal machinery figures out the tweens for you.

3/ @nicbarkeragain ^2087747024309604730

The above is about 175 lines of C btw, with 80% of that just being properties in the UI element config structs. Almost zero logic.

Branches: archive/threads/nicbarkeragain/2026-08-13-had-a-quick-try-at-replicating-these-nice/2026-08-13-coodeneko-this-in-the-clay-library-ive-been-thinking-about, archive/threads/nicbarkeragain/2026-08-13-had-a-quick-try-at-replicating-these-nice/2026-08-13-borrowck_novel-would-it-be-possible-to-create-a-small-public