Get started with draggabilly CDN

MIT licensed

Draggably is a lightweight library that enables easy drag-and-drop functionality for HTML elements.

Tags:
  • draggable
  • element

Stable version

Copied!

How to start using draggabilly CDN


<!DOCTYPE html>
<html>
<head>
  <title>Get started with draggabilly CDN - cdnhub.io</title>
  <link rel="stylesheet" href="styles.css">
  <script src="https://cdn.cdnhub.io/draggabilly/3.0.0/draggabilly.pkgd.min.js"></script>
</head>
<body>
  <div id="draggable" class="draggable">
    Drag me!
  </div>

  <script>
    const draggable = new Draggabilly('#draggable', {
      containment: '#container'
    });
  </script>
</body>
</html>
Copied!
Copied!

All versions