Sitemap
Just Eat Takeaway-tech

Articles made by the techiest people at Just Eat Takeaway.com

Testing a LottieAnimation in Compose

3 min readJun 5, 2025

--

Photo by Medienstürmer on Unsplash

What are we starting with?

A screen recording of a phone showing a LottieAnimation.
Example of the LottieAnimation I will build UI tests for.
data class LottieAnimationUiModel(val shouldShowAnimation: Boolean)

Building UI tests

MainTestClock

CompositionLocal + iterations

CompositionLocal + clipSpec

AnimationProgress: 0.0
AnimationProgress: 0.2401716
[…]
AnimationProgress: 0.9835604
AnimationProgress: 1.0
The animation has finished
Example of the LottieAnimation running with a clipSpec of 0 and 0.55 values.

--

--

Just Eat Takeaway-tech
Just Eat Takeaway-tech
Jordi Coll Marin
Jordi Coll Marin

Written by Jordi Coll Marin

🇳🇱 Based in the NL. I am an Android machine @ Just Eat Takeaway.

No responses yet