Skip to content

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

License

Notifications You must be signed in to change notification settings

renadmunna/CursorJS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published