Skip to content

Instantly share code, notes, and snippets.

View reneeverly's full-sized avatar
🏳️‍⚧️
Trans Rights are Human Rights

Renée Waverly reneeverly

🏳️‍⚧️
Trans Rights are Human Rights
View GitHub Profile
@reneeverly
reneeverly / DragTransform
Last active April 17, 2026 20:08 — forked from fta2012/DragTransform
Slightly modified compiled coffeescript from this codepen: http://codepen.io/fta/pen/ifnqH. Paste into console on a page that has jQuery to load the two dependent libraries (jquery-ui and numericjs). Then call makeTransformable('#selector-name') to make that element WYSIWYG editable. Use inspector to get the CSS for the transforms.
var selector = 'img' // Replace this with the selector for the element you want to make transformable
// Get required version of jQuery
var script_tag = document.createElement('script');
script_tag.async = 1
script_tag.src = "https://code.jquery.com/jquery-2.2.4.min.js"
script_tag.onload = function() {
jQuery.getScript('//ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js', function() {
jQuery.getScript('//cdnjs.cloudflare.com/ajax/libs/numeric/1.2.6/numeric.min.js', function() {