I do have Hype, but haven’t had a need to add it to a blocs site yet. In saying that, since Hype does use JavaScript, you should be able to use that to toggle the collapse class of any element on the page.
I think if you have Hype Pro you can do this with attributes.
I do not want to collapse something visible in Blocs. I want to make a previous invisible Bloc, visible, by clicking not a button, but an Hype animation, inside a Blocs3 site.
So, if I put an ID at a specific bloc inside Blocs3, how can I write a simple javascript on HypePro that make an clickable Hype animation control (toggle visibility) of that specific Bloc, in any browser? is there a way?
Hi @PeteSharp, thanks for the help.
I’ve used element.classList.toggle
Worked well, but the transition is instantaneous and without motion. (The blocs structure an other blocs below just jump to new positions when the controlled bloc turns visible)
Is there a way to that all the rest of Blocs site contents slide, animated?
Hey @mauriciotrentin as Jonathan mentioned over in the Hype forum and @PeteSharp mentioned here too, you should be able to toggle anything on the page via the Hype animation using the following code.