Toggle navigation
在线编辑器
在线代码
文本比较
jQuery下载
前端库
在线手册
登录/注册
下载代码
html
css
js
分享到微信朋友圈
X
html
Transitions & Animations
Combined with SVGs
css
@import url("https://fonts.googleapis.com/css2?family=DM+Mono:ital,wght@0,300;1,500&display=swap"); body { background: linear-gradient(#3800e7, #8a15ff); height: 100vh; font-size: calc(14px + (26 - 14) * ((100vw - 300px) / (1600 - 300))); font-family: "DM Mono", monospace; font-weight: 300; overflow: hidden; color: white; text-align: center; } h1 { font-size: 3em; margin-bottom: 0.2em; } h2 { font-size: 2em; } .main { height: 100vh; display: flex; flex-direction: column; flex-wrap: wrap; position: relative; justify-content: center; align-items: center; } .main:before, .main:after { content: ""; display: block; position: absolute; z-index: -3; } .main:before { right: 0; bottom: -19; height: 30em; width: 30em; border-radius: 30em; background: linear-gradient(#3800e7, #8a15ff); align-self: flex-end; -webkit-animation: gradient-fade 8s ease-in-out 3s infinite alternate; animation: gradient-fade 8s ease-in-out 3s infinite alternate; } .main:after { top: 0; left: 30; height: 10em; width: 10em; border-radius: 10em; background: linear-gradient(#3800e7, #8a15ff); -webkit-animation: gradient-fade-alt 6s ease-in-out 3s infinite alternate; animation: gradient-fade-alt 6s ease-in-out 3s infinite alternate; } .main__text-wrapper { position: relative; padding: 2em; } .main__text-wrapper:before, .main__text-wrapper:after { content: ""; display: block; position: absolute; } .main__text-wrapper:before { z-index: -1; top: -3em; right: -3em; width: 13em; height: 13em; opacity: 0.7; border-radius: 13em; background: linear-gradient(#15e0ff, #8a15ff); -webkit-animation: rotation 7s linear infinite; animation: rotation 7s linear infinite; } .main__text-wrapper:after { z-index: -1; bottom: -20em; width: 20em; height: 20em; border-radius: 20em; background: linear-gradient(#d000c5, #8a15ff); -webkit-animation: rotation 7s linear infinite; animation: rotation 7s linear infinite; } .arrow { z-index: 1000; opacity: 0.5; position: absolute; } .arrow--top { top: 0; left: -5em; } .arrow--bottom { bottom: 0; right: 3em; } .circle { transform: translate(50%, -50%) rotate(0deg); transform-origin: center; } .circle--ltblue { height: 20em; width: 20em; border-radius: 20em; background: linear-gradient(#15e0ff, #3800e7); } .backdrop { position: absolute; width: 100vw; height: 100vh; display: block; background-color: pink; } .dotted-circle { position: absolute; top: 0; right: 0; opacity: 0.3; -webkit-animation: rotation 38s linear infinite; animation: rotation 38s linear infinite; } .draw-in { stroke-dasharray: 1000; stroke-dashoffset: 10; -webkit-animation: draw 15s ease-in-out alternate infinite; animation: draw 15s ease-in-out alternate infinite; } @-webkit-keyframes draw { from { stroke-dashoffset: 1000; } to { stroke-dashoffset: 0; } } @keyframes draw { from { stroke-dashoffset: 1000; } to { stroke-dashoffset: 0; } } .item-to { -webkit-animation-duration: 10s; animation-duration: 10s; -webkit-animation-iteration-count: infinite; animation-iteration-count: infinite; transform-origin: bottom; } .bounce-1 { -webkit-animation-name: bounce-1; animation-name: bounce-1; -webkit-animation-timing-function: ease; animation-timing-function: ease; } .bounce-2 { -webkit-animation-name: bounce-2; animation-name: bounce-2; -webkit-animation-timing-function: ease; animation-timing-function: ease; } .bounce-3 { -webkit-animation-name: bounce-3; animation-name: bounce-3; -webkit-animation-timing-function: ease; animation-timing-function: ease; } @-webkit-keyframes bounce-1 { 0% { transform: translateY(0); } 50% { transform: translateY(50px); } 100% { transform: translateY(0); } } @keyframes bounce-1 { 0% { transform: translateY(0); } 50% { transform: translateY(50px); } 100% { transform: translateY(0); } } @-webkit-keyframes bounce-2 { 0% { transform: translateY(0); } 50% { transform: translateY(-30px); } 100% { transform: translateY(0); } } @keyframes bounce-2 { 0% { transform: translateY(0); } 50% { transform: translateY(-30px); } 100% { transform: translateY(0); } } @-webkit-keyframes bounce-3 { 0% { transform: translateY(0); } 50% { transform: translateY(30px); } 100% { transform: translateY(0); } } @keyframes bounce-3 { 0% { transform: translateY(0); } 50% { transform: translateY(30px); } 100% { transform: translateY(0); } } @-webkit-keyframes rotation { from { transform: rotate(0deg); } to { transform: rotate(360deg); } } @keyframes rotation { from { transform: rotate(0deg); } to { transform: rotate(360deg); } } @-webkit-keyframes gradient-fade { from { transform: translate(10%, -10%) rotate(0deg); } to { transform: translate(50%, -50%) rotate(360deg); } } @keyframes gradient-fade { from { transform: translate(10%, -10%) rotate(0deg); } to { transform: translate(50%, -50%) rotate(360deg); } } @-webkit-keyframes gradient-fade-alt { from { transform: translate(-20%, 20%) rotate(0deg); } to { transform: translate(-60%, 60%) rotate(360deg); } } @keyframes gradient-fade-alt { from { transform: translate(-20%, 20%) rotate(0deg); } to { transform: translate(-60%, 60%) rotate(360deg); } }
JavaScript
粒子
时间
文字
hover
canvas
3d
游戏
音乐
火焰
水波
轮播图
鼠标跟随
动画
css
加载动画
导航
菜单
按钮
滑块
tab
弹出层
统计图
svg
×
Close
在线代码下载提示
开通在线代码永久免费下载,需支付20jQ币
开通后,在线代码模块中所有代码可终身免费下!
您已开通在线代码永久免费下载,关闭提示框后,点下载代码可直接下载!
您已经开通过在线代码永久免费下载
对不起,您的jQ币不足!可通过发布资源 或
直接充值获取jQ币
取消
开通下载
<!doctype html> <html> <head> <meta charset="utf-8"> <title>SVG 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号