Skip to content

rmageshkumar/draggable-element

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

draggable-element

Overview

draggable-element is a simple JavaScript library that enables drag-and-drop functionality for HTML elements. It is lightweight and easy to integrate into any web project.

Features

  • Lightweight and dependency-free
  • Easy to use and integrate
  • Supports touch and mouse events
  • Customizable drag behavior

Installation

You can install draggable-element via npm:

npm install draggable-element

Or include it directly in your HTML file:

<script src="path/to/draggable-element.js"></script>

## Usage

To make an element draggable, simply add the `draggable` class to the element:

```html
<div class="draggable">Drag me!</div>

Initialize the draggable functionality in your JavaScript:

import Draggable from 'draggable-element';

const draggable = new Draggable('.draggable');

Contact

For any questions or support, please contact me at rmageshkumar.it@gmail.com.

License

This project is licensed under the MIT License.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors