import { Snippet } from '$lib/components/Snippet.svelte'; let code = `<Snippet {code} />`; window.addEventListener('mousemove', (e) => { let offset = div.getBoundingClientRect(); let dx = e.clientX - offset.left - offset.width / 2; let dy = e.clientY - offset.top - offset.height / 2; rotateX.set(dy / -100); rotateY.set(dx / 100); }); function doSomething() { console.log('Hello world!'); } doSomething();