鼠标点击出现爱心动效
起这么个标题,感觉瞬间回到了那个前端蛮荒的年代,各种滑动门特效。。。 还是在同一个博客上扒到的效果,地址在这 点我 $(“html,body”).click(function(e) { var gcd = new Array(“♥”, “♥”, “♥”); var n = Math.floor(Math.random() * gcd.length); var $i = $(“<b/>”).text(gcd[n]); var x = e.pageX, y = e.pageY; $i.css({ “z-index”: 99999, “top”: y – 20, “left”: x – 8, “position”: “absolute”, “color”: “#FF706C”, “animation”: ‘heartbeat .25s infinite .15s’ });…