Can you create a slideable button interface?

Is it possible to create this button slider, so you can slide through different buttons, I’ll tag a photo for reference. Any help is appreciated

I am also looking for something similar.

Please assist.