awesome-cursor
v1.0.9
Published
Change your website cursor to a modern circle cursor that snaps to elements similar to iPad cursor
Downloads
4
Readme
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 --save
Node
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-button
Add this class to your div to make the cursor snap around it.ac-text
Add this class to your span or input to make the cursor change into a text cursorac-text
nested insideac-button
does not work wellcursor: default values
You 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