ufo-cursor
v1.0.0
Published
A little UFO that follows your cursor around the page
Readme
UFO Cursor
A little UFO that follows your cursor around the webpage and changes to a beam up version when hovering over specified HTML elements.
Installation
npm i ufocursor --save
To use
JS
- Import file:
import {cursorMove} from "./ufo-cursor/ufocursor.js" - Run function
cursorMove();
HTML
- Link stylesheet:
<link rel="stylesheet" href="ufo-cursor/ufocursor.css"> - Create empty cursor object at end of HTML
<div class="cursor"></div> - Add
class: beamto any HTML element you want to have UFO beam up hover activation.
