Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

mageowl/pointer.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Pointer.js

A JavaScript library for making a cool pointer

Install Guide

Note: You need to import both js and css files.

  1. Import js file from 'https://seattleowl.com/pointer.js/pointer.js', like so:

    <script src="https://seattleowl.com/pointer.js/pointer.js"></script>
  2. Do the same for the css:

    <link href="https://seattleowl.com/pointer.js/pointer.css" rel="stylesheet">
  3. 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.