基于 React 的新 iPadOS Cursor 的 Web 实现 ⚪️
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.暂无开放 Issues,或尚未同步最近议题。