Anybody can help in creating this animation in com...
# compose
d
Anybody can help in creating this animation in compose.
t
What did you try so far? 🙂
d
I done for Vertical bars but animation from top to bottom is not as bottom to top.
Copy code
@Composable
fun getAnimate(targetValue : Float,time:Int,direction:Direction): Float{
    val infiniteTransition = rememberInfiniteTransition()
    val initial: Float
    val target: Float
    if (direction == Direction.DOWNTOUP){
        initial= 0f
        target =targetValue
    }else{
        initial = targetValue-((targetValue*40)/100)
        target = 0f
    }
    val animationProgress by infiniteTransition.animateFloat(

        initialValue = initial,
        targetValue = target,
        animationSpec = infiniteRepeatable(
            animation = tween(durationMillis = time)
        )
    )
    return animationProgress
}
But this is wrong
a
Which app is that?
a
This might be something to use canvas for
Or use lottie
d
this i got from dribble i want to make this
c
id probably go for lottie