Skip to content

samsmo/drago

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

drago

Simple, free, draggable solution with throw-a-bility

How to initialize.

  const $container = document.querySelector('.js-drag-container');
  const $content   = $container.querySelector('.js-drag-content');
  const instance   = new Drago($content, $container);

Et tu, brute?

To stop the RAF / Draggability of drago:

  instance.kill();

Dev notes

  • Options were removed in favor of simplicity. But very basic options will be added back once the overall refactor is complete (DOM mouse events are quite terrible).

About

Simple, free, draggable solution with throw-a-bility

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published