Display Text Based On Button Clicked

Hi, does anyone know how do i create a interactive image that display different text based on the buttons clicked. Below are the examples of function. Thanks

Hi, you will probably need some custom code. In principle, this is similar to an accordion just with a different layout. I’d use this as a base and work from that.

How you designed it. Could you share with me the how you did it step by step. As I am trying my best to do such kind of designing and customization for our app. But I am Unable to do it. As your guidance will motivate me.