Add fullscreen toggle to your pen ➡
Instructions
-
Insert button anywhere in your pen's HTML:
[[[https://codepen.io/tiggr/pen/poJoLyW]]] -
Add external JS resource in pen settings:
https://codepen.io/tiggr/pen/poJoLyW
Voilà! The button appears in the top right of your page. You can style it using
.toggle-fullscreen-btn
CSS class.
You might also want to save this pen in a collection to always have access to these instructions.