Advertisement
artemsemkin

Untitled

Dec 21st, 2023
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. // slider dots
  2. .on('mouseenter', '.slider__dot', () => {
  3. this.setCursor({
  4. hide: true
  5. });
  6. })
  7. .on('mouseleave', '.slider__dot', (e) => {
  8. this.setCursor({
  9. hide: false
  10. });
  11. this.scale = 1;
  12. this._scaleCursor();
  13. this._resetMagnifiedElement($(e.currentTarget));
  14. })
  15. .on('mousemove', '.slider__dot', (e) => {
  16. const $target = $(e.currentTarget);
  17.  
  18. this.scale = 0.5;
  19. this._scaleCursor();
  20. this._magnifyElement({
  21. element: $target,
  22. event: e,
  23. distance: self.magneticDistance,
  24. scaleBy: self.magneticScaleCursorBy,
  25. scale: 0.5,
  26. });
  27. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement