Creating a sliding pill effect

Hi Everyone!

I am building a mobile app and would like a smooth animated sliding pill effect to toggle between 2 options - does anyone know if this is something I can build on my own or if there’s a free plugin I can leverage?

Thank you in advance for any guidance! (beginner level builder here)

There are plugins. Not sure if any are for mobile. You could check.

I haven’t used the new mobile editor.

I build my own for my apps.

I put this one together.

I just used workflows on this one.

You could also use custom states, I guess, if you wanted.

Didn’t take a lot of time designing it. I put this one together in about 10 minutes. Just wanted to show you it was possible, at least on desktop, and I would assume on mobile also. You could take your time designing it any way you wanted.

you can build this without a plugin, especially with just 2 options. use a custom state, two buttons/groups, and a pill that moves based on the selected option.

for native mobile, keep the animation simple and check that any plugin supports the mobile editor. a lightweight setup will usually be smoother and easier to maintain.