FranPR9 / light_saber

light saber that follows cursor for html documents
MIT License
5 stars 0 forks source link

Light Saber Cursor FUN!!!

DEMO

alt tag

Chrome Extension

Description:

light saber that follows cursor for html documents that uses Javascript and CSS.

How to:

  1. Copy the light_saber.js to your js directory
  2. Include de light_saber.js to your html code:

<script type="text/javascript" src="https://github.com/FranPR9/light_saber/raw/master/js/light_saber.js"></script>

Play Audio:

<script type="text/javascript"> LightSaber_setAudio(false) </script>

To stop playing audio.(true for playing it).

Set Image:

<script type="text/javascript"> LightSaber_setSrc("your_image_path") </script>

to set image.

Set Audio:

<script type="text/javascript"> LightSaber_setAudioSRC("your_audio_path") </script>

to change lightsaber sound.

Set z-index:

<script type="text/javascript"> LightSaber_setzIndex(-2) </script>

change z-index of the image, default = -1

Blue Saber

<script type="text/javascript"> LightSaber_setBlue() </script>

Green Saber

<script type="text/javascript"> LightSaber_setGreen() </script>