An open API service indexing awesome lists of open source software.

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

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