1.0.9 • Published 6 years ago
awesome-cursor v1.0.9
Awesome Cursor
Change your website cursor to a modern circle cursor. Make it snap to elements
Installation
<script> tag
<script src="https://cdn.jsdelivr.net/npm/awesome-cursor/dist.min.js"></script>or
npm install awesome-cursor --save
yarn add awesome-cursor
bower install awesome-cursor --saveNode
require('aweomse-cursor')
import 'awesome-cursor'Why?
This lightweight module allows you to change the cursor to a circular cursor. It also snaps to elements defined by you on hover. Making a snappable element is as simple as adding a class. The cursor understands height, width and border-radius properties. Other property mappings and customizations coming soon.
Usage
.ac-buttonAdd this class to your div to make the cursor snap around it.ac-textAdd this class to your span or input to make the cursor change into a text cursorac-textnested insideac-buttondoes not work wellcursor: default valuesYou can still use default cursor values. Like show pointer to show pointer cursor over this
Examples:
<div class="btn ac-button">
<span>Click Me</span>
</div><span class="title ac-text">This the is selectable</span><input class="input ac-text">Click here to enter text</span>License
MIT