Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...

Dushyant Kumar

Members
  • Content Count

    5
  • Joined

  • Last visited

Community Reputation

0 Newbie

About Dushyant Kumar

  • Rank
    Newbie
  1. Thankyou This work good window.addEventListener("mousemove", e => { // best Power4.out or sine.out gsap.to(dpkCursorMouse,{ duration:.10, x: e.x, y: e.y, ease:'sine.out', overwrite:true, }) });
  2. How Can I optimize This Sir const dpkCursor = document.querySelector(".dpkCursor"); gsap.set(dpkCursor, { xPercent: -50, yPercent: -50 }); let dpkCursorPos = { x: window.innerWidth / 2, y: window.innerHeight / 2 }; let dpkCursorMouse = { x: dpkCursorPos.x, y: dpkCursorPos.y }; window.addEventListener("mousemove", e => { // best Power4.out or sine.out gsap.to(dpkCursorMouse,{ duration:.25, x: e.x, y: e.y,
  3. I want Some Smoothness so i need some animation inside mousemove and for performance optimization i used ticker what is the best way to do so gsap.to(dpkCursorMouse,{ duration:.25, x: e.x, y: e.y, ease:'sine.out' })
  4. Yeh Sir i want to make it default whenever users scroll Plz Suggest some Optimization Thankyou so much for reply
  5. Hello Sir ! I want Some Optimization On my Custom Cursor Example and most importantly i want to remove .hover-active on scroll ( plz suggest some logic in the place where i comment in codepen ) in the best way as calling a function on scroll may create lag or jank
×