brean / svelte-gamepad-virtual-joystick

Gamepad bindings for your svelte web-app with a virtual joystick that can either be used as fallback when a joystick is not connected, as indicator of the gamepad state or to provie a virtual joystick and a gamepad at the same time to your user.
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

fade in/out animation #6

Open brean opened 4 months ago

brean commented 4 months ago

The occupacy of the virtual joystick should fade, same as nipple.js-one, however we can save some code by just using https://svelte.dev/docs/svelte-transition