最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - How to create shapes around mouse cursor? - Stack Overflow

programmeradmin2浏览0评论

I am a markup newbie and wanted to create some shapes like spider net around mouse cursor using javascript, jquery or even better, pure css (I doubt it is possible).

An exactly example is:

/

Do you see shapes when you move your mouse cursor? What are these and is there any jquery plugin to do this?

thank you.

I am a markup newbie and wanted to create some shapes like spider net around mouse cursor using javascript, jquery or even better, pure css (I doubt it is possible).

An exactly example is:

http://whois.domaintools.com/

Do you see shapes when you move your mouse cursor? What are these and is there any jquery plugin to do this?

thank you.

Share Improve this question asked Feb 17, 2015 at 17:41 Hamid SoltaniHamid Soltani 1572 silver badges12 bronze badges 5
  • 1 not a css/js expert, but I would say that you need to be able to generate visuals like this first . the location is not important. And then track where the mouse cursor is and place it there. – Shashank Shekhar Commented Feb 17, 2015 at 17:43
  • Just look into the source of the page. It likely contains some java stuff – qwerty_so Commented Feb 17, 2015 at 18:10
  • Hey guys Thats HTML5 CANVAS <canvas id="spiders" class="hidden-xs" width="1366" height="398"></canvas> – Nadeemmnn Mohd Commented Feb 17, 2015 at 18:15
  • 1 The effect you linked looks like it could be ParticlesJS with a blur filter and a circular mask around the cursor. – Scott Commented Feb 17, 2015 at 19:01
  • Is that site actually using ParticlesJS itself? I'm not sure how you could get it to be centred around the cursor using ParticlesJS (unless they've customised the code?) – NickG Commented Jul 16, 2019 at 9:58
Add a comment  | 

1 Answer 1

Reset to default 20

I had used an a library for this. Here's the link to it: https://github.com/VincentGarreau/particles.js

It's just what you want. Happy coding!

发布评论

评论列表(0)

  1. 暂无评论