iposcursor
TypeScript icon, indicating that this package has built-in type declarations

0.1.5 • Public • Published

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>

Readme

Keywords

Package Sidebar

Install

npm i iposcursor

Weekly Downloads

2

Version

0.1.5

License

MIT

Unpacked Size

19.3 kB

Total Files

10

Last publish

Collaborators

  • josesaranda