@x_m/interact-dom
TypeScript icon, indicating that this package has built-in type declarations

0.1.9 • Public • Published

@x_m/interact-dom

@x_m/interact 在各个交互方式上做了一个封装

install

yarn add @x_m/interact-dom

examples

import InteractDom from '@x_m/interact-dom'

const interact = new InteractDom()
const elem = document.querySelector('xxx')

interact.attach(elem)
interact.addListener('change', () => {
  elem.style.transform = interact.formatToCss()
})

Readme

Keywords

none

Package Sidebar

Install

npm i @x_m/interact-dom

Weekly Downloads

0

Version

0.1.9

License

MIT

Unpacked Size

16.7 kB

Total Files

8

Last publish

Collaborators

  • xiaomingtang