Why are the default offsets for `slide[In|Out][Ver...
# compose
t
Why are the default offsets for
slide[In|Out][Vertically|Horizontally]
set to
-it / 2
? I would have expected just
'-it
. Why only slide half way?
👍 1
d
Two reasons behind that decision: 1) Not all
AnimatedVisibilty
occupies the full screen, which means even after sliding all the way, it's still going to be visible. 2) Therefore there's the expectation that the slide will likely be used in conjunction with
fade
, in which case a moderate movement looks nice.