A web implementation of the new iPadOS cursor in React ⚪️
A web implementation of the new iPadOS cursor in React ⚪️
git clone https://github.com/sambernhardt/ipad-cursor.git
npm i
npm run start
// app.js
import App from 'next/app';
import CursorProvider from '../cursor/Provider';
export default class MyApp extends App {
render () {
const { Component, pageProps } = this.props;
return (
)
}
}WithHover function// Component.js
import WithHover from '../cursor/WithHover';
const Component = () =>
;
export default WithHover(, 'block');inline-block or block. CSS transforms don't work on inline elements.No open issues yet, or sync has not completed.