Utilities
keyStroke
Move an element with the arrow keys.
Demo
Use keys to move this ball
Utilities
Move an element with the arrow keys.
<script>
import { keyStroke } from "sveltronics";
</script>
<div class="relative">
<div use:keyStroke={50}>
</div>
</div>