https://github.com/timwright12/util.move
A plugin to help elements around the DOM
https://github.com/timwright12/util.move
Last synced: 10 months ago
JSON representation
A plugin to help elements around the DOM
- Host: GitHub
- URL: https://github.com/timwright12/util.move
- Owner: timwright12
- License: mit
- Created: 2016-12-02T15:09:47.000Z (over 9 years ago)
- Default Branch: main
- Last Pushed: 2023-01-13T22:54:34.000Z (over 3 years ago)
- Last Synced: 2025-08-09T18:34:38.067Z (11 months ago)
- Language: JavaScript
- Size: 1.1 MB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Util.move
A plugin to help elements around the DOM
```
npm install utilitymove --save
```
```
import UtilityMove from 'utilitymove';
UtilityMove( {
'el' : document.getElementById( 'one' ),
'appendTo' : document.getElementById( 'wrap' ),
// 'before' : null,
// 'after' : null,
// 'prependTo' : null,
'minWidth' : 800,
'refreshRate' : 100,
// useMatchMedia: true,
// mediaQuery: '(min-width: 800px)',
} );
```
If you're not using ES6, you don't need the `import`, just include the script