1.1.1 • Published 7 years ago

sherry-move v1.1.1

Weekly downloads
4
License
ISC
Repository
github
Last release
7 years ago

sherry-move

light dom move or transformation plug-in

Install

By npm:

npm install sherry-move

Usage

argumentsDescriptiondefaultvaluetype
domtarget dom-object
jsoninformation of this transform,like{ 'width' : '200', 'height' : '150' , 'speed' : '6'}-json
callbackcallbacknullfunction

Use with HTML <script> tag:

<script src="/node_modules/sherry-move/dist/sherryMove.js"></script>

other js field you can write:

<script>
  	startMove(dom, {"width": "300"}, callback)
</script>

Use with npm:

import startMove from "sherry-move";
...
startMove(dom, {"width": "300"}, callback)

Tips

  • startMove's returned value is the dom moved.
  • json.speed belong to1-10 (more bigger more slower)
1.1.1

7 years ago

1.1.0

7 years ago

1.0.8

8 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago