Toggle navigation
在线编辑器
在线代码
文本比较
jQuery下载
前端库
在线手册
登录/注册
下载代码
html
css
js
分享到微信朋友圈
X
html
5
css
html, body { height: 100%; } body { height: 100%; display: flex; align-items: center; justify-content: center; background: #010001; font-family: 'Raleway', sans-serif; } .box { position: relative; margin-top: 80px; } .box img { width: 200px; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; pointer-events: none; } .box .count { font-size: 60px; color: #fff; position: absolute; top: -33px; right: -7px; z-index: 1; display: inline-block; } .box .count::before { content: ''; position: absolute; top: 63%; left: 39%; -webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%); width: 80px; height: 80px; border-radius: 50%; box-shadow: -6px 7px 55px #ff2900; opacity: 1; } .box svg { overflow: visible !important; pointer-events: none; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } .bubbles { position: absolute; top: 50%; -webkit-transform: translateY(-50%); transform: translateY(-50%); width: 150px; height: 150px; } .mask { position: absolute; top: 0; left: 0; } #organic-blob { position: absolute; right: -65px; top: -169px; }
JavaScript
let bubblesCount = 70; let bubbles = document.querySelector('.bubbles'); let getRandomInt = (min, max) => { min = Math.ceil(min); max = Math.floor(max); return Math.floor(Math.random() * (max - min + 1)) + min; } for (let i = 0; i < bubblesCount; i++) { let circle = document.createElement('circle'); circle.setAttribute('r', getRandomInt(5, 15)); circle.setAttribute('cy', 300); circle.setAttribute('cx', getRandomInt(40, 110)); circle.setAttribute('fill', '#ff2900'); bubbles.append(circle); } let html = $('.bubbles').html(); $('.bubbles').html(html); let circles = document.querySelectorAll('.bubbles circle'); for (let i = 0; i < circles.length; i++) { let del = getRandomInt(0, 1000 * 3); let xv = getRandomInt(-35, 35); anime({ targets: circles[i], r: { value: 0, duration: 500, delay: del + 1000 }, translateX: { value: xv, duration: 800, delay: del, }, translateY: { value: [0, -150], duration: 2000, delay: del, }, loop: true, easing: 'linear' }) }
粒子
时间
文字
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号