<button id="open-sesame">Open</button> <script> var openSesame = document.getElementById('open-sesame'); openSesame.addEventListener("click", function(){ $('.sidenav').sidenav('open'); }); </script>
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter