Toggle navigation
在线编辑器
在线代码
文本比较
jQuery下载
前端库
在线手册
登录/注册
下载代码
html
css
js
分享到微信朋友圈
X
html
--
particles
css
/* ---- reset ---- */ body { margin: 0; font: normal 75% Arial, Helvetica, sans-serif; } canvas { display: block; vertical-align: bottom; } /* ---- tsparticles container ---- */ #tsparticles { position: absolute; width: 100%; height: 100%; background-color: #323031; background-image: url(""); background-repeat: no-repeat; background-size: cover; background-position: 50% 50%; } /* ---- stats.js ---- */ .count-particles { background: #000022; position: absolute; top: 48px; left: 0; width: 80px; color: #13e8e9; font-size: 0.8em; text-align: left; text-indent: 4px; line-height: 14px; padding-bottom: 2px; font-family: Helvetica, Arial, sans-serif; font-weight: bold; } .js-count-particles { font-size: 1.1em; } #stats, .count-particles { -webkit-user-select: none; } #stats { border-radius: 3px 3px 0 0; overflow: hidden; } .count-particles { border-radius: 0 0 3px 3px; }
JavaScript
tsParticles.load("tsparticles", { detectRetina: false, fpsLimit: 60, interactivity: { detectsOn: "canvas", events: { onClick: { enable: false, mode: "push" }, onDiv: { elementId: "repulse-div", enable: false, mode: "repulse" }, onHover: { enable: true, mode: "bubble", parallax: { enable: false, force: 2, smooth: 10 } }, resize: true }, modes: { bubble: { distance: 40, duration: 2, opacity: 8, size: 6, speed: 3 }, connect: { distance: 80, lineLinked: { opacity: 0.5 }, radius: 60 }, grab: { distance: 400, lineLinked: { opacity: 1 } }, push: { quantity: 4 }, remove: { quantity: 2 }, repulse: { distance: 200, duration: 0.4 }, slow: { active: false, radius: 0, factor: 1 } } }, particles: { color: { value: "#ffffff" }, lineLinked: { blink: false, color: "#ffffff", consent: false, distance: 30, enable: true, opacity: 0.4, width: 1 }, move: { attract: { enable: false, rotate: { x: 600, y: 1200 } }, bounce: false, direction: "none", enable: true, outMode: "bounce", random: false, speed: 1, straight: false }, number: { density: { enable: false, area: 2000 }, limit: 0, value: 200 }, opacity: { animation: { enable: true, minimumValue: 0.05, speed: 2, sync: false }, random: false, value: 0.4 }, shape: { character: { fill: false, font: "Verdana", style: "", value: "*", weight: "400" }, image: { height: 100, replaceColor: true, src: "images/github.svg", width: 100 }, polygon: { sides: 5 }, stroke: { color: "#000000", width: 0 }, type: "circle" }, size: { animation: { enable: false, minimumValue: 0.1, speed: 40, sync: false }, random: true, value: 3 } }, polygon: { draw: { enable: true, lineColor: "rgba(255,255,255,0.2)", lineWidth: 0.5 }, move: { radius: 10 }, inlineArrangement: "equidistant", scale: 0.5, type: "inline", url: "http://www.jq22.com/jswj/smalldeer.svg" } }); var stats = new Stats(); stats.setMode(0); stats.domElement.style.position = "absolute"; stats.domElement.style.left = "0px"; stats.domElement.style.top = "0px"; document.body.appendChild(stats.domElement); var count_particles = document.querySelector(".js-count-particles"); var update = function() { stats.begin(); stats.end(); if (tsParticles.domItem(0).particles.array) { count_particles.innerText = tsParticles.domItem(0).particles.array.length; } requestAnimationFrame(update); }; requestAnimationFrame(update);
粒子
时间
文字
hover
canvas
3d
游戏
音乐
火焰
水波
轮播图
鼠标跟随
动画
css
加载动画
导航
菜单
按钮
滑块
tab
弹出层
统计图
svg
×
Close
在线代码下载提示
开通在线代码永久免费下载,需支付20jQ币
开通后,在线代码模块中所有代码可终身免费下!
您已开通在线代码永久免费下载,关闭提示框后,点下载代码可直接下载!
您已经开通过在线代码永久免费下载
对不起,您的jQ币不足!可通过发布资源 或
直接充值获取jQ币
取消
开通下载
<!doctype html> <html> <head> <meta charset="utf-8"> <title>粒子多边形蒙版-jq22.com</title> <script src="https://www.jq22.com/jquery/jquery-1.10.2.js"></script> <style>
</style> </head> <body>
<script>
</script>
</body> </html>
2012-2021 jQuery插件库版权所有
jquery插件
|
jq22工具库
|
网页技术
|
广告合作
|
在线反馈
|
版权声明
沪ICP备13043785号-1
浙公网安备 33041102000314号