1.4.0 • Published 10 months ago

@fire-moon-studio/draggable-js v1.4.0

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

@fire-moon-studio/draggable-js

A simple library to enable drag-and-drop functionality for HTML elements using only the data-draggable="true" attribute.


Description

@fire-moon-studio/draggable-js is a lightweight library that helps you make any HTML element draggable easily without any external dependencies, simply by adding the data-draggable="true" attribute to the element.


Usage

  1. Add the script to your page:
<script src="https://unpkg.com/@fire-moon-studio/draggable-js/dist/bundle.js"></script>
  1. Add the data-draggable="true" attribute to the element you want to make draggable:
<div data-draggable="true" style="width:100px; height:100px; background:#3498db; cursor:move;">
  Drag me
</div>

Publisher

FireMoon Studio


License

MIT License

1.4.0

10 months ago

1.0.3

10 months ago

1.0.2

10 months ago

1.0.1

10 months ago

1.0.0

10 months ago