I am wondering if anyone knows how to toggle between full screen and normal mode in Galleria
The only way I can think of is to switch between themes : default, and Fullscreen theme (which i bought from there)
If you know an even better way, I would appreciate your help.
I’m just going to add to @Ohgodwhy’s answer:
The best way to get the Galleria instance and use the API is to use the Galleria.ready function:
Or, you can access the instance via the
$.dataobject if you know that the gallery is initialized:I am assuming you have a link/button with the ID ‘fullscreen’ and the gallery is at ID ‘galleria’.