用来创建一个纸屑视觉效果或纸屑动画:https://github.com/yiliansource/party-js
效果演示地址:http://www.bootstrapmb.com/item/10837
particles.js效果图image.png
引入 js文件夹 particles.js particles.json
即可
#particles-js{
width: 100%;
height: 100%;
background-color: #b61924;
/* background-image: url('img/123.jpg'); */
background-size: 100% 100%;
background-position: center;
background-repeat: no-repeat;
display: flex;
flex-direction: column;
}
<body id="particles-js">
<script src="particles/particles.js"></script> 注意路径
<script src="particles/js/app.js"></script> 注意路径
</body>
Particles BG 这是一个粒子动画背景的组件。https://github.com/lindelof/particles-bg
网友评论