If I connect the animation in json format, then by default it will stop on the last frame, as I need it to.
But if I use a lighter .dotlottie file, the animation stops at the first frame, not the last, and I have an empty first frame. Therefore, there is a feeling that the animation simply disappears.
How do I make the animation stop or pause on the last frame or before the last frame?
I have already read all the documentation and tried different options with the script like that:
<script>
LottieInteractivity.create({
player: '#firstLottie',
mode: 'play',
actions: [
{
visibility: [0,1],
type: 'stop',
frames: [754],
},
]
});
</script>
it doesn’t work, the animation stops at the first frame