Advertisement
artemsemkin

Untitled

Aug 23rd, 2020
1,446
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // init cursor only on non-touch browsers
  2. if (window.theme.cursorFollower.enabled && !window.Modernizr.touchevents) {
  3.   new Cursor({
  4.     scope: window.$document,
  5.     target: $('#js-cursor'),
  6.     cursorElements: '[data-arts-cursor]',
  7.     highlightElements: 'a:not(a[data-arts-cursor]):not(.social__item a):not(.section-video__link):not(.no-highlight), button:not(button[data-arts-cursor]), .filter__item, .section-nav-projects__header, .js-highlight', // links to highlight
  8.     highlightScale: 1.5, // default highlight scaling
  9.     magneticElements: '[data-arts-cursor-magnetic]', // magnetic elements
  10.     magneticScaleCursorBy: 1.3, // default magnetic scaling
  11.     animDuration: 0.25,
  12.   });
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement