https://github.com/think2011/z-dragify
让元素可拖拽,支持移动端
https://github.com/think2011/z-dragify
Last synced: 10 months ago
JSON representation
让元素可拖拽,支持移动端
- Host: GitHub
- URL: https://github.com/think2011/z-dragify
- Owner: think2011
- Created: 2016-10-08T02:56:14.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-10-11T06:01:52.000Z (over 9 years ago)
- Last Synced: 2025-08-05T16:55:34.528Z (11 months ago)
- Language: JavaScript
- Size: 13.7 KB
- Stars: 8
- Watchers: 2
- Forks: 10
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
z-Dragify
```js
new Dragify(document.querySelector('#box'),{
target: document.querySelector("#box-title")
})
.on('start', function () {
console.log('s')
})
.on('move', function () {
console.log('m')
})
.on('end', function () {
console.log('e')
})
new Dragify("#box",{
target: "#box-title"
})
```