PixelsCommander / Propeller

JavaScript library to rotate elements with mouse or touch gestures. Supports inertia and stepwise rotation. Optimized for better performance.
http://pixelscommander.com/polygon/propeller/
409 stars 58 forks source link

rotate element with lower z-index #25

Closed nickcom closed 7 years ago

nickcom commented 7 years ago

I have a few elements stacked on top of each other. I would like to be able to apply propeller.js to one of the divs in the middle of the stack, and rotate that.

In other words, is if possible for the mouse/touch inputs to be applied to a div other than the one on the top layer?

PixelsCommander commented 7 years ago

Yes, you may use pointer-events: none; in upper element CSS

nickcom commented 7 years ago

Great! I didn't know this

PixelsCommander commented 7 years ago

Check cross-browser compatibility for it http://caniuse.com/#feat=pointer-events . May not meet your compatibility policy