1.0.0 • Published 5 years ago
ufo-cursor v1.0.0
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.
Demo here
1.0.0
5 years ago