A JavaScript library for making a cool pointer
Note: You need to import both js and css files.
-
Import js file from 'https://seattleowl.com/pointer.js/pointer.js', like so:
<script src="https://seattleowl.com/pointer.js/pointer.js"></script>
-
Do the same for the css:
<link href="https://seattleowl.com/pointer.js/pointer.css" rel="stylesheet">
-
Finally add this javascript code to customize your pointer:
init_pointer({ pointerColor: "purple", // Css color ringSize: 15, // Pixels ringClickSize: 10 // Pixels when clicking })
You should now have something like the example in /index.html
.