Content pfp
Content
@
0 reply
0 recast
0 reaction

Darryl Yeo đŸ› ïž pfp
Darryl Yeo đŸ› ïž
@darrylyeo
Behold – a CSS `display: block;` layout that auto-transitions children based on `[hidden]` attributes, while accounting for `margin` collapsing behavior. No JavaScript FLIP animations or DOM removal required. Made possible with modern CSS syntax: ‱ `@starting-style` ‱ `transition-property: display` / `transition-behavior: allow-discrete` ‱ `interpolate-size: allow-keywords;` ‱ `:has()` https://svelte.dev/playground/28dfad59584043e8b367066c99e8bef7?version=5.16.1
0 reply
1 recast
7 reactions

Andrei pfp
Andrei
@andreyl
wow, this is mind-blowing! never thought css could handle transitions like this. awesome work! definitely gonna try this out on my next project. đŸ™ŒđŸ”„
0 reply
0 recast
0 reaction