How do I make a button to switch between images?

Hello, I am fairly new to obsidian and am trying to make a personal worldbuilding wiki for a sci-fi campaign of mine.

For my character profile, I want there to be a set of buttons that let’s you switch between images of a character at various ages, similarly to how wookiepedia does it:


but currently my page looks like this:

I have tried searching online for an image carousel functionality, but none of the options I found online work. I also tried adding buttons via a script but whenever I would click them they would do nothing:

Apologies if it’s really obvious I’m very new to obsidian. Any help would be appreciated!

I’ve not done this particular variant, but maybe you could use Meta bind to switch between setting the a cover property, and then let the image reload when that changes? Then you could have a button setting the image of any given age.

And if you wanted to, you could also opt for a select input which allows you chose between different ages instead of doing multiple buttons.

The Tabs plugin might work: GitHub - xhuajin/obsidian-tabs

Or the HTML Tabs plugin: GitHub - ptournet/obsidian-html-tabs: Obsidian plugin allowing the creation and rendering of Tabs and tab panels in your notes.

(I haven’t tried either of them.)