{"id":19859022,"url":"https://github.com/mikedevelops/vanilla-drag","last_synced_at":"2026-05-11T13:02:31.447Z","repository":{"id":57390666,"uuid":"105363323","full_name":"mikedevelops/vanilla-drag","owner":"mikedevelops","description":"Drag HTML elements, nothing more, nothing less.","archived":false,"fork":false,"pushed_at":"2020-05-12T08:54:54.000Z","size":106,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-24T06:27:39.785Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mikedevelops.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-09-30T10:45:25.000Z","updated_at":"2018-05-31T19:07:45.000Z","dependencies_parsed_at":"2022-09-01T15:57:49.328Z","dependency_job_id":null,"html_url":"https://github.com/mikedevelops/vanilla-drag","commit_stats":null,"previous_names":["mikedevelops/draggable"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/mikedevelops/vanilla-drag","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikedevelops%2Fvanilla-drag","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikedevelops%2Fvanilla-drag/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikedevelops%2Fvanilla-drag/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikedevelops%2Fvanilla-drag/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mikedevelops","download_url":"https://codeload.github.com/mikedevelops/vanilla-drag/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikedevelops%2Fvanilla-drag/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32895978,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-10T13:40:02.631Z","status":"online","status_checked_at":"2026-05-11T02:00:05.975Z","response_time":120,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-12T14:25:21.733Z","updated_at":"2026-05-11T13:02:31.416Z","avatar_url":"https://github.com/mikedevelops.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Vanilla Drag\n\n[![Build Status](https://travis-ci.org/mikedevelops/vanilla-drag.svg?branch=master)](https://travis-ci.org/mikedevelops/vanilla-drag)\n\nA _tiny_ (5KB) package to allow free dragging of HTML elements.\n\n[Example](http://michaelsmart.co.uk/playground/vanilla-drag)\n\n## Installation\n\n```shell\nnpm install --save vanilla-drag\n```\n\n## Getting Started\n\n```javascript\nimport VanillaDrag from 'vanilla-drag';\n\nconst target = document.getElementById('target');\nconst drag = new VanillaDrag(window, target);\n```\n\n## Options\n\nThe VanillaDrag constructor takes two arguments.\n\n```javascript\nnew VanillaDrag([window], [HTMLElement])\n```\n\n### [window]\n\nThe current context's window object. 99% of the time this will always be a case of passing in the global `window` object.\n\n### [HTMLElement]\n\nAn instance of a `HTMLElement` that will have dragging enabled. Jquery users can access an instance of this object using the following Jquery index / method `$('#target')[0]` or `$('#target').get(0)`. For Jquery collections containing multiple elements, the collection will need to be iterated over and a separate instance of VanillaDrag created for each item.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikedevelops%2Fvanilla-drag","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmikedevelops%2Fvanilla-drag","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikedevelops%2Fvanilla-drag/lists"}