Is it possible to animate a composable beyond its ...
# compose
n
Is it possible to animate a composable beyond its bounds? For instance, here, I have pieces in a
LazyVerticalGrid
I want these pieces to move outside of the grid. How can I do it? At the moment, they are moving but then disappear when they reach the edge of the
LazyVerticalGrid
. 🧵
Copy code
@Composable
fun Board() {
    Box(modifier = Modifier.fillMaxSize(), contentAlignment = Alignment.BottomCenter) {
        LazyVerticalGrid(
            cells = GridCells.Fixed(7),
            contentPadding = PaddingValues(7.dp),
        ) {
            items(49) { index ->
                Piece(index)
            }
        }
    }
}
t
I think you can use
SizeTransform(clip = false)
. See usage here
👍 1
n
Thanks, will check it out!