Toggle navigation
在线编辑器
在线代码
文本比较
jQuery下载
前端库
在线手册
登录/注册
下载代码
html
css
js
分享到微信朋友圈
X
html
css
/* variables */ /* Reset */ *, *::after, *::before { margin: 0; padding: 0; box-sizing: border-box; } /* Generic */ body { width: 100%; height: 100vh; display: flex; justify-content: center; align-items: center; background: #FCE8CE; } /**/ .main { width: 800px; height: 600px; position: absolute; overflow: hidden; } /**/ .bow { position: absolute; top: 120px; left: 345px; width: 120px; height: 350px; animation: bow 8s infinite; } .bow__base { position: absolute; top: calc(50% - 260px); right: 0%; width: 1500px; height: 520px; z-index: 100; border-radius: 70% 30% 30% 70% / 50% 50% 50% 50%; border-top: 15px solid transparent; border-right: 15px solid #00BDAE; border-bottom: 15px solid transparent; border-left: 15px solid transparent; } .bow__base::before { content: ''; position: absolute; top: calc(50% - 37.5px); right: -15px; width: 25px; height: 75px; background-image: linear-gradient(to bottom, #2C6087 30%, #F82B48 30%, #F82B48 70%, #00BDAE 70%); } .bow__top, .bow__bottom { position: absolute; left: 10px; height: 25px; width: 12px; border-radius: 10px; background: #00BDAE; z-index: 100; } .bow__bottom { bottom: 0px; } .rope { position: absolute; top: 5px; left: 12px; height: 340px; } .rope__top, .rope__bottom { position: absolute; height: 175px; width: 7px; border-radius: 10px; background: #555468; animation: row-top 4s infinite linear , row-h 4s infinite linear; } .rope__bottom { bottom: 0%; animation: row-bottom 4s infinite linear , row-h 4s infinite linear; } .arrow { position: absolute; top: calc(50% - 22.5px); left: calc(50% - 75px); width: 300px; height: 45px; animation: arrow 8s infinite linear, arrow-s 8s infinite linear; } .arrow__line { position: absolute; width: 280px; height: 5px; top: calc(50% - 2.5px); left: calc(50% - 140px); z-index: 50; background: #555468; border-radius: 5px; } .arrow__head { position: absolute; top: 8px; right: 5px; width: 30px; height: 30px; z-index: 50; background-image: linear-gradient(-45deg, #FF6353 0%, #FF6353 50%, transparent 50%); transform: rotateZ(-45deg); } .arrow__top, .arrow__bottom { position: absolute; left: 5px; width: 50px; height: 22px; background-image: linear-gradient(to right, #FF6353 0%, #FF6353 70%, #F82B48 70%); transform: skewX(30deg); } .arrow__bottom { bottom: 0; background-image: linear-gradient(to right, #00BDAE 0%, #00BDAE 70%, #2C6087 70%); transform: skewX(-30deg); } .line { position: absolute; left: 100%; top: 40%; width: 50px; height: 5px; background: #555468; animation: line 8s infinite linear; } .line-2 { top: 60%; animation-delay: .2s; } .wall { position: absolute; width: 5px; height: 200px; top: calc(50% - 100px); right: -5px; z-index: 50; background: #555468; animation: wall 8s infinite linear; } /**/ @keyframes wall { 0%, 80%, 96% { right: -10px; } 82%, 95% { right: 0px; } } @keyframes bow { 0%, 22%, 100% { top: 120px; left: 345px; } 30% { top: 120px; left: -50vw; } 80% { top: 150vmax; left: 345px; } } @keyframes arrow { 0%, 100% { left: calc(50% - 75px); transform: rotateZ(0deg); } 21% { left: calc(50% - 170px); } 24%, 79% { left: calc(100% - 350px); transform-origin: right; transform: rotateZ(0deg); } 80%, 82%, 84% { transform-origin: right; transform: rotateZ(-5deg); left: calc(100% - 305px); } 81%, 83%, 85% { transform-origin: right; transform: rotateZ(5deg); left: calc(100% - 305px); } 86%, 95% { transform-origin: right; transform: rotateZ(0deg); left: calc(100% - 305px); } } @keyframes arrow-s { 0%, 40%, 42%, 44%, 46%, 48%, 60%, 62%, 64%, 66%, 68%, 70% { top: calc(50% - 22.5px); } 41%, 43%, 45%, 47%, 49%, 61%, 63%, 65%, 67%, 69% { top: calc(50% - 18px); } } @keyframes row-h { 0%, 12.5%, 44%, 50% { height: 175px; } 42.5% { height: 198px; } } @keyframes row-top { 0%, 50% { transform-origin: top; transform: rotateZ(0deg); } 40%, 42.5% { transform-origin: top; transform: rotateZ(30deg); } 47.5% { transform-origin: top; transform: rotateZ(-15deg); } } @keyframes row-bottom { 0%, 50% { transform-origin: bottom; transform: rotateZ(0deg); } 40%, 42.5% { transform-origin: bottom; transform: rotateZ(-30deg); } 47.5% { transform-origin: bottom; transform: rotateZ(15deg); } } @keyframes line { 0%, 25%, 30.1%, 35.1%, 40.1%, 45.1%, 50.1%, 55.1%, 60.1%, 65.1%, 70.1%, 75.1% { left: 100%; } 30%, 35%, 40%, 45%, 50%, 55%, 60%, 65%, 70%, 75% { left: -100px; } }
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号