Skip to content

josesaranda/iposcursor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

iposcursor an iPadOS 13.4 Cursor for the web

Simple implementation of iPadOS 13.4 Cursor built with web technologies.

See demo (only desktop browser)

Installation

From NPM

npm install iposcursor --save

From CDN

<!-- Include anywhere inside head tag -->
<link rel="stylesheet" href="https://unpkg.com/iposcursor/dist/css/iposcursor.min.css">
<!-- Include at the end of body tag -->
<script src="https://unpkg.com/iposcursor/dist/iposcursor.min.js"></script>

Usage

ES and TS modules

import { IposCursor, create } from 'iposcursor';

let cursor = new IposCursor({element : 'elementId'});
cursor.suscribe();
// or
let cursor = create({element : 'elementId'});
cursor.suscribe();

Browser

<html>
<head>
  <!-- your awesomes styles, meta, etc -->
  <link rel="stylesheet" href="node_modules/iposcursor/css/iposcursor.min.css">
</head>
  <body>
  <!-- your awesome code -->
  <!-- ... -->
  <script src="node_modules/iposcursor/iposcursor.min.js"></script>
  <script>
    let cursor = iposcursor.create({element : 'elementId'});
    cursor.suscribe();
  </script>
  </body>
<html>

About

Simple implementation of ipadOS 13.4 cursor built in Javascript.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published