design engineer @krea_ai

🌐
Joined March 2021
Include

Only show posts containing:

Exclude

Hide posts containing:

Time range
-
Minimum likes
Replying to @dimuuu @attio
incredibly cool! also sound design is 👌
1
1
183
Replying to @moshiur314
yess good tip! this demo does exactly that too
5
Replying to @Cl0udW4lk3r
if you mean the transition-discrete prop, yes! it can work anywhere where you flip the visibility of an element but this effect can be recreated with js too, or just using an anim lib:)
71
use-case #2 for transition: allow-discrete table resizing!
4
2
247
5,902
Replying to @diip3sh
this demo uses fixed width:) but interpolate-size is another underrated prop!!
60
one important detail is that for entry animations, you'll also want to combine this w/ @starting-style to define the initial state of elements that were previously display: none more on this: css-tricks.com/almanac/prope…
6
803
so, i was thinking about where transition-behavior: allow-discrete could actually be useful and imo, one really good use-case is when you're toggling the visibility of elements and want to add a little animation (like a subtle fade). eg, when expanding/collapsing a sidebar!
6
15
614
17,021
Replying to @maheshkamalakar
yessss! important part i should have mentioned in the post, thank you!
1
25
Replying to @edo_lunardi
ahaha, excellent!!
1
2
300
Replying to @LuisBizarro
excellent tip!! to some extent i'm guilty of this myself...
2
170
no joke there is a very high chance that it will be a banger
1
2
174
ofc, if you use base-ui / radix / any popular component lib, or any popular animation lib (which is like 99% of the cases nowadays), you don't have to worry about this at all, since they already handle exit animations but i'll share another demo soon where i think this can come super handy! more to read: css-tricks.com/almanac/prope…
454
another underrated css prop i discovered only now is transition-behavior: allow-discrete! it allows transitions between discrete props, like display or visibility, which can be super useful for entry/exit anims on the left, without allow-discrete, switching from display block to none happens instantly on the right, with allow-discrete, the element stays visible during the opacity transition, and swaps to none only when the transition finishes
8
5
226
7,918
there are so many things that is obvious to you or a lot fo people but are completely new to someone else! i think a lot of people hesitate to share what they know because they assume it's common knowledge, when it's really not sometimes imo we should all share our stuff more freely even if it feels obvious haha
2
1
1
12
1,905