Hi guys,
I am just playing around with the the Draggable plugin and its awesome. As it can be used for not only dragging but also rotate or scroll content, I wonder if there is a way to make it to resize an element onDrag?
Has anyone done that? Does anyone know how it could be done?
Thanks,
Praney
Haha I hadn't planned on doing that, thanks for the challenge Jack!
It's a very naive implementation and doesn't consider any of the issues Jack mentioned, but hey, it drags and resizes... I used a little jQuery because I'm lazy, but you can modify it to whatever framework you use (or native javascript...). Tested in latest Firefox, Chrome, IE9 and an iPad2.
See the Pen fjJah by jamiejefferson (@jamiejefferson) on CodePen