0.0.2 • Published 1 year ago

@studiokeywi/play v0.0.2

Weekly downloads
-
License
-
Repository
-
Last release
1 year ago

studioKeywi: play

Fun bits and bobs for anyone to use!

npm.io

Contents

  • Confetti

    Generate a shower of confetti on your webpage

  • Konami

    Enable the Konami Code as a way to execute JS functions

Samples and Examples

Throw Confetti with Konami Code

<script type="module" defer>
  import { confetti, konami } from 'https://cdn.jsdelivr.net/gh/studiokeywi/play/dist/index.js';

  const { init, render } = confetti();

  const payload = () => (init(), render());

  const { load, unload } = konami({ once: false, payload });

  load();
</script>