universal-tilt.js icon indicating copy to clipboard operation
universal-tilt.js copied to clipboard

Feature request: enhancements to base=window

Open itsViney opened this issue 4 years ago • 0 comments

With base=window, currently all tilting elements on the page move completely in unison, regardless of where they are in relation to the cursor. It would be great if an option(s) could be added so

  1. the amount of tilt applied to a given element decreases as the cursor moves further away from that element
  2. the angle of each element is unique so each one tilts towards/away from the cursor
  3. the scale effect is decoupled from the tilt to allow for the scale only being applied when the cursor is over each specific element

These options combined could make for some really unique effects when dealing with multiple tilting elements on a single page

itsViney avatar Jan 31 '21 11:01 itsViney