Apply Show/Hide click on multiple text blocks

Hi, I’m trying to recreate the old subject of this last article, but the links no longer work.

I want to create an article with a menu on the side (where the buttons go to a specific page) and buttons at the top of each page to go to the before / next page. I want a simple animation that will work with all pages without having to create a specific code for each button.

Tks