desandro / draggabilly

:point_down: Make that shiz draggable
https://draggabilly.desandro.com
MIT License
3.86k stars 386 forks source link

changing the transform method to change the background-position-y only #124

Closed sanjayaega closed 7 years ago

sanjayaega commented 8 years ago

Hello, I am currently using your draggabilly for my code, and I have some custom modification on it. How if I want to change the transform:translate3d() into thebackground-position-y:? I have tried but i still confuse on it. sorry I am newbie on javascript. Thanks for your reply :D

desandro commented 8 years ago

The element's style is set here:

https://github.com/desandro/draggabilly/blob/v2.1.0/draggabilly.js#L411-L419

You may want to try overwriting these methods.