In Progress: Text size transition issue when switching widget states

Hey everyone đź‘‹

I’ve built a widget in Rive that has two states , one small and one large , with an elastic interpolation between them. I’m using booleans and listeners to trigger the transition, and everything works smoothly except for one thing: the text scaling.

When the widget transitions from state 1 (small) to state 2 (big), I want the text (like “OCT”) to increase in size along with the rest of the elements , and ( 14 ) to appear in state 2. However, I couldn’t figure out a way to animate the text size directly at runtime, so I used opacity keyframes to fake it by hiding and showing differently sized text layers.

While it technically works, it doesn’t look professional, the opacity fade makes the text transition visibly pop or flicker, even with a short duration or exit easing.

I feel I might be missing a proper way to handle text resizing or morphing between states. maybe setting a condition or a listener just for that.

Any advice on how to achieve a smoother text size transition , or if there’s a runtime or layout-based approach I should use instead ,would be really helpful.

I’ve attached the .riv file below for reference.

rive file -

untitled.riv

Thanks in advance! 🙏