Jump to content
Search Community

harshg

Members
  • Posts

    3
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

harshg's Achievements

0

Reputation

  1. Hi OSUblake, Thank you for the response. Here is that pen https://codepen.io/lycan8/pen/bGdOrmN
  2. Hi Zach, thank you for the such a quick reply! By affecting a container of elements do you mean the parent elements of these circles? So I did try for that. I added a mousemove on the window and calculated the distance of the mouse to all the particles, and moved the particles away, while storing their last position, when the mouse came close using the setInterval function. But that causes the particles/bees to jitter, as when they move ahead, their previous position automatically gets kicked in. So I cam across this CodePen: https://codepen.io/biblos/pen/KRJmey Like I want the smooth pushback and back to it's original position. This works perfect for a stationary particles but when it starts moving, the particle get jittery. This has me stuck for a good week now. Just can't wrap my head around it yet. Again, thank you for the reply!
  3. Hi there, So I have just started using GSAP and I am finding it to be pretty amazing. So recently I have been working on a project, to animate bee like motion. So I have a few bees on the screen, which I initiate using gsap.to and everything works fine. What I am looking to achieve is a mouse repel sort of a function. Where the bees move away when the mouse comes close. I have gone through the forums and learnt a great deal about SVG paths and alignments but unfortunately I got stuck here. Any pointers or ideas that can help?
×
×
  • Create New...