Home

Awesome

move-master

node version npm version downloads count size license

🔨 Move ANY element on page

Preview 🎉

https://codepen.io/piecioshka/full/dXAJdq/

How it works?

We have for instance that structure in DOM:

<img id="logo" src="..." alt="Logo" />

Create in JavaScript file reference to that element:

var logo = document.querySelector('#logo');

Next, run that one line, to enable logo moving:

const MoveMaster = require('move-master');

MoveMaster({
    target: /* HTMLElement */ logo,
    options: document.body,
    hook:  /* HTMLElement */ button
});

To enable moving on selected HTMLElement.

API

In settings:

License

The MIT License @ 2014