renadmunna / CursorJS

CursorJS is simple javascript function library, which can dynamically create cursor with the help of SVG.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CursorJS(v1.17.03.19) is simple javascript function library, which can dynamically create cursor with the help of SVG.

Documentation:

For image cursor(The conventional way)

cursor({ domElement:document.body, type:"img", filePath:"type/cursor.png" });

With javascript string (Best way to use)

cursor({ domElement:document.body, type:"svg", svgString:cursor_svg_string });

With SVG element in html (Hide SVG container)

cursor({ domElement:document.body, type:"svg", svgElement:document.getElementById("svg") });

From external SVG File (Delay for loading SVG)

cursor({ domElement:document.body, type:"svg", filePath:"type/cursor.svg" });

***Canvas rander will be added soon.

About

CursorJS is simple javascript function library, which can dynamically create cursor with the help of SVG.

License:MIT License


Languages

Language:HTML 78.2%Language:JavaScript 21.8%