Toggle navigation
在线编辑器
在线代码
文本比较
jQuery下载
前端库
在线手册
登录/注册
下载代码
html
css
js
分享到微信朋友圈
X
html
SUPER SALE
BEST OFFER
SUPER SALE
30%
70%
60%
90%
70%
60%
50%
70%
30% 50% 70%
BEST OFFER
SALE | SALE | SALE | SALE | SALE | SALE |
css
:root { --color: #F1DF40; --color-b: #625AEE; } html { height: 100%; } body { margin: 0; background-color: #384052; height: 100%; display: -webkit-box; display: -moz-box; display: -ms-flexbox; display: -webkit-flex; display: flex; -webkit-align-items: center; -moz-align-items: center; -ms-align-items: center; align-items: center; -webkit-justify-content: center; -moz-justify-content: center; -ms-justify-content: center; justify-content: center; -ms-flex-pack: center; font-family: 'Helvetica Neue', Arial; font-size: 18px; letter-spacing: 3.3px; font-weight: bold; } .container { position: relative; width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 30px; box-sizing: border-box; display: -webkit-box; display: -moz-box; display: -ms-flexbox; display: -webkit-flex; display: flex; flex-wrap: wrap; } .box { position: relative; display: inline-block; box-sizing: border-box; width: 20%; padding-bottom: 20%; margin: 0 2.5%; background-color: var(--color-b); } .box--1 span { font-size: 1em; display: inline-block; text-align: center; width: 100%; -moz-animation: marquee 4s linear infinite; -webkit-animation: marquee 4s linear infinite; animation: marquee 4s linear infinite; } .box--1 span:nth-child(1) { position: absolute; left: -100%; -moz-animation: marquee 4s 2s linear infinite; -webkit-animation: marquee 4s 2s linear infinite; animation: marquee 4s 2s linear infinite; } .box--1 .line { position: absolute; bottom: 0; left: 0; right: 0; height: 34px; overflow: hidden; white-space: nowrap; display: -webkit-box; display: -moz-box; display: -ms-flexbox; display: -webkit-flex; display: flex; -webkit-align-items: center; -moz-align-items: center; -ms-align-items: center; align-items: center; -webkit-justify-content: center; -moz-justify-content: center; -ms-justify-content: center; justify-content: center; -ms-flex-pack: center; background-color: var(--color); } @keyframes marquee { 0% { left: 0; -moz-transform: translateX(-100%); -ms-transform: translateX(-100%); -webkit-transform: translateX(-100%); transform: translateX(-100%); } 100% { left: 0; -moz-transform: translateX(100%); -ms-transform: translateX(100%); -webkit-transform: translateX(100%); transform: translateX(100%); } } .box--2 { overflow: hidden; } .box--2 .text { position: absolute; bottom: 30px; left: 30px; right: 30px; height: 34px; font-size: 1em; background-color: var(--color); display: -webkit-box; display: -moz-box; display: -ms-flexbox; display: -webkit-flex; display: flex; -webkit-align-items: center; -moz-align-items: center; -ms-align-items: center; align-items: center; -webkit-justify-content: center; -moz-justify-content: center; -ms-justify-content: center; justify-content: center; -ms-flex-pack: center; } .box--2 .border { position: absolute; bottom: 0; left: 0; width: 100%; height: 100%; outline: 30px solid #000; outline-offset: -30px; } .box--2 span { position: absolute; bottom: -100%; width: 30px; height: 30px; display: -webkit-box; display: -moz-box; display: -ms-flexbox; display: -webkit-flex; display: flex; -webkit-align-items: center; -moz-align-items: center; -ms-align-items: center; align-items: center; -webkit-justify-content: center; -moz-justify-content: center; -ms-justify-content: center; justify-content: center; -ms-flex-pack: center; font-size: 0.8em; letter-spacing: 2px; color: var(--color); -moz-animation: border 8s linear infinite; -webkit-animation: border 8s linear infinite; animation: border 8s linear infinite; } .border span:nth-child(1) { animation-delay: 1s; } .border span:nth-child(2) { animation-delay: 2s; } .border span:nth-child(3) { animation-delay: 3s; } .border span:nth-child(4) { animation-delay: 4s; } .border span:nth-child(5) { animation-delay: 5s; } .border span:nth-child(6) { animation-delay: 6s; } .border span:nth-child(7) { animation-delay: 7s; } .border span:nth-child(8) { animation-delay: 8s; } @keyframes border { 0% { left: 0px; bottom: 0px; right: auto; top: auto; -moz-transform: rotate(0deg); -ms-transform: rotate(0deg); -webkit-transform: rotate(0deg); transform: rotate(0deg); } 0.001% { left: auto; bottom: 0px; right: 80%; top: auto; } 25% { left: auto; bottom: 0px; right: 0; top: auto; -moz-transform: rotate(0deg); -ms-transform: rotate(0deg); -webkit-transform: rotate(0deg); transform: rotate(0deg); } 25.001% { left: auto; bottom: auto; right: 0; top: 80%; -moz-transform: rotate(90deg); -ms-transform: rotate(90deg); -webkit-transform: rotate(90deg); transform: rotate(90deg); } 50% { left: auto; bottom: auto; right: 0; top: 0; -moz-transform: rotate(90deg); -ms-transform: rotate(90deg); -webkit-transform: rotate(90deg); transform: rotate(90deg); } 50.001% { left: 80%; bottom: auto; right: auto; top: 0; -moz-transform: rotate(0deg); -ms-transform: rotate(0deg); -webkit-transform: rotate(0deg); transform: rotate(0deg); } 75% { left: 0px; bottom: auto; right: auto; top: auto; -moz-transform: rotate(0deg); -ms-transform: rotate(0deg); -webkit-transform: rotate(0deg); transform: rotate(0deg); } 75.001% { left: 0px; bottom: 80%; right: auto; top: auto; -moz-transform: rotate(-90deg); -ms-transform: rotate(-90deg); -webkit-transform: rotate(-90deg); transform: rotate(-90deg); } 99.881% { left: 0px; bottom: 0px; right: auto; top: auto; -moz-transform: rotate(-90deg); -ms-transform: rotate(-90deg); -webkit-transform: rotate(-90deg); transform: rotate(-90deg); } 100% { left: 0px; bottom: 0px; right: auto; top: auto; -moz-transform: rotate(0deg); -ms-transform: rotate(0deg); -webkit-transform: rotate(0deg); transform: rotate(0deg); } } .box--3 span { height: 36px; font-size: 1em; display: inline-block; text-align: center; width: 100%; -moz-animation: marquee-top 2s linear infinite; -webkit-animation: marquee-top 2s linear infinite; animation: marquee-top 2s linear infinite; } .box--3 span:nth-child(1) { position: absolute; left: -100%; -moz-animation: marquee-top 2s 1s linear infinite; -webkit-animation: marquee-top 2s 1s linear infinite; animation: marquee-top 2s 1s linear infinite; } .box--3 .line { position: absolute; top: 0; left: 0; right: 0; height: 34px; overflow: hidden; white-space: nowrap; display: -webkit-box; display: -moz-box; display: -ms-flexbox; display: -webkit-flex; display: flex; -webkit-align-items: center; -moz-align-items: center; -ms-align-items: center; align-items: center; -webkit-justify-content: center; -moz-justify-content: center; -ms-justify-content: center; justify-content: center; -ms-flex-pack: center; background-color: #000; color: var(--color); } @keyframes marquee-top { 0% { left: 0; -moz-transform: translateY(-100%); -ms-transform: translateY(-100%); -webkit-transform: translateY(-100%); transform: translateY(-100%); } 100% { left: 0; -moz-transform: translateY(100%); -ms-transform: translateY(100%); -webkit-transform: translateY(100%); transform: translateY(100%); } } .box--4 .btn { display: block; position: absolute; border-radius: 50%; width: 100px; height: 100px; bottom: -45px; right: -45px; background-color: #000; } .box--4 .box_rotate { overflow: hidden; position: absolute; bottom: 0; left: 0; width: 100%; height: 100%; } .box--4 .box_rotate:before { content: ""; display: block; border-radius: 50%; width: 170px; height: 170px; position: absolute; bottom: -80px; right: -80px; box-sizing: border-box; border: 30px solid var(--color); } .box--4 svg { width: 494px; height: auto; position: absolute; bottom: -242px; right: -244px; -moz-animation: rotate 8s linear infinite; -webkit-animation: rotate 8s linear infinite; animation: rotate 8s linear infinite; } .box--4 text { font-size: 10px; letter-spacing: 1.15px; font-weight: bold; } @keyframes rotate { 0% { -moz-transform: rotate(0deg); -ms-transform: rotate(0deg); -webkit-transform: rotate(0deg); transform: rotate(0deg); } 100% { -moz-transform: rotate(360deg); -ms-transform: rotate(360deg); -webkit-transform: rotate(360deg); transform: rotate(360deg); } } @media (max-width: 1200px) { body { font-size: 16px; } } @media (max-width: 1150px) { body { font-size: 14px; } } @media (max-width: 1024px) { body { display: block; } .container { -webkit-justify-content: center; -moz-justify-content: center; -ms-justify-content: center; justify-content: center; -ms-flex-pack: center; } .box { height: 200px; width: 100%; max-width: 300px; margin: 30px; } } @media (max-width: 400px) { .container { padding: 0 15px; -webkit-justify-content: center; -moz-justify-content: center; -ms-justify-content: center; justify-content: center; -ms-flex-pack: center; } .box { height: 200px; width: 100%; max-width: 280px; margin: 20px auto; } }
JavaScript
粒子
时间
文字
hover
canvas
3d
游戏
音乐
火焰
水波
轮播图
鼠标跟随
动画
css
加载动画
导航
菜单
按钮
滑块
tab
弹出层
统计图
svg
×
Close
在线代码下载提示
开通在线代码永久免费下载,需支付20jQ币
开通后,在线代码模块中所有代码可终身免费下!
您已开通在线代码永久免费下载,关闭提示框后,点下载代码可直接下载!
您已经开通过在线代码永久免费下载
对不起,您的jQ币不足!可通过发布资源 或
直接充值获取jQ币
取消
开通下载
<!doctype html> <html> <head> <meta charset="utf-8"> <title>css文字滚动-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号