I've been searching for hours online and I can't seem to figure this out. Is there any way to achieve this? If so, please share the steps with me. I found a code snippet but I'm unsure how to implement it properly. Can someone guide me on how to do this in a more organized manner because I'm completely lost. Also, I need to be able to execute this from the editor.
<!DOCTYPE html>
<html lang="en">
<body>
<div id="container"></div>
<div id="info">
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/105/three.min.js"></script>
<input type="button" onClick="shake()" value="click me"></input>
<script>
// Code for initialization, mesh creation, screen shake, and event handling
</script>
</body>
</html>