Mouse follow
hi EVERYONE
I realise this effect
https://codepen.io/alpha_66/pen/xxemvGN I don't know why on codepen the is not working but on my computer is working very well the problem is mouse and the circle there are not moving at the same time. can I have some idea to perfom this ? thanks
https://codepen.io/alpha_66/pen/xxemvGN I don't know why on codepen the is not working but on my computer is working very well the problem is mouse and the circle there are not moving at the same time. can I have some idea to perfom this ? thanks
2 Replies
In you have transition: .3s , so the .mouse element will transition with .3s duration every time the mousemove eventlistener changes the top or left property.
Maybe you want to specify which property to target, for example the .mouse element will follow the movement quickly, but the size will change slowly.
You can have multiple of those in a comma separated list, like
thanks
for your answer
work very well
:thumbup: