Toggle navigation
在线编辑器
在线代码
文本比较
jQuery下载
前端库
在线手册
登录/注册
下载代码
html
css
js
分享到微信朋友圈
X
html
css
body { background-color: #01191d; } #rocket { position: absolute; width: 80px; left: 50%; margin-left: -40px; top: 100px; z-index: -2; } .artboard { position: relative; width: 300px; height: 300px; border-radius: 50%; border: solid #18F4A3 2px; margin: 0 auto; margin-top: 15vh; overflow: hidden; -webkit-mask-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAA5JREFUeNpiYGBgAAgwAAAEAAGbA+oJAAAAAElFTkSuQmCC); backface-visibility: none; background: radial-gradient(circle at bottom, rgba(24, 244, 163, 0.3) 0%, rgba(1, 34, 38, 0) 60%); } .star { position: absolute; width: 10px; height: 10px; top: 37%; left: 31%; } .star::before, .star::after { content: ''; position: absolute; width: 3px; height: 10px; background: #fff; border-radius: 50%; box-shadow: 0 0 6px 3px rgba(255, 255, 255, 0.15); animation: sparkle 1s ease-in-out infinite alternate; } .star::after { transform: translate(-50%, -50%) rotate(90deg); } .star::before { transform: translate(-50%, -50%); } .star:nth-child(2) { top: 20%; left: 23%; transform: scale(1.4); } .star:nth-child(3) { top: 28%; left: 64%; transform: scale(0.7); } @keyframes sparkle { from { height: 10px; } to { height: 3px; } } .smoke { position: absolute; width: 400%; height: 400%; bottom: -250%; left: 50%; background-color: #e8e6ef; transform: translateX(-50%) scale(0.25); } .smoke-bubble { position: absolute; background-color: #e8e6ef; border-radius: 50%; animation: smoke infinite 7s alternate ease-in-out; } .smoke-bubble:nth-child(1) { left: 1%; top: -22%; width: 20%; height: 20%; animation-duration: 5s; } .smoke-bubble:nth-child(2) { right: 1%; top: -22%; width: 20%; height: 20%; animation-duration: 5s; } .smoke-bubble:nth-child(3) { left: -6%; top: -28%; width: 15%; height: 15%; animation-duration: 3s; } .smoke-bubble:nth-child(4) { right: -6%; top: -28%; width: 15%; height: 15%; animation-duration: 3s; } .smoke-bubble:nth-child(5) { left: 12%; top: -11%; width: 20%; height: 20%; animation-duration: 6s; } .smoke-bubble:nth-child(6) { right: 12%; top: -11%; width: 20%; height: 20%; animation-duration: 6s; } .smoke-bubble:nth-child(7) { left: 28%; top: -7%; width: 14%; height: 14%; animation-duration: 3s; } .smoke-bubble:nth-child(8) { right: 28%; top: -7%; width: 14%; height: 14%; animation-duration: 3s; } .smoke-bubble:nth-child(9) { left: 35%; top: -6%; width: 19%; height: 19%; animation-duration: 5s; } .smoke-bubble:nth-child(10) { right: 35%; top: -6%; width: 19%; height: 19%; animation-duration: 5s; } .smoke-bubble:nth-child(11) { left: -9%; top: -19%; width: 30%; height: 30%; animation: none; } .smoke-bubble:nth-child(12) { right: -9%; top: -19%; width: 30%; height: 30%; animation: none; } @keyframes smoke { 0% { transform: scale(1.2); } 50% { transform: scale(0.8); } 100% { transform: scale(1.2); } } .fire { top: 67%; z-index: -4; position: absolute; left: 50%; margin-left: -10px; width: 20px; height: 20px; border-radius: 80% 0 55% 50% / 55% 0 80% 50%; background-color: #00ffea; transform: rotate(135deg); margin-top: 20px; animation: flicker infinite 1s alternate ease-in-out; } .fire:after { content: ""; top: 5px; position: absolute; width: 15px; height: 15px; border-radius: 80% 0 55% 50% / 55% 0 80% 50%; background-color: #dafffe; } @keyframes flicker { 0% { transform: rotate(135deg) scale(0.8); box-shadow: 0 0 17px 10px rgba(165, 238, 224, 0.5); } 25% { box-shadow: 0 0 17px 5px rgba(165, 238, 224, 0.5); } 50% { box-shadow: 0 0 17px 7px rgba(165, 238, 224, 0.5); } 75% { box-shadow: 0 0 17px 5px rgba(165, 238, 224, 0.5); } 100% { box-shadow: 0 0 17px 10px rgba(165, 238, 224, 0.5); } } .takeoff { z-index: -4; position: absolute; left: 50%; transform: translateX(-50%); width: 7%; height: 100%; top: 67%; background-image: linear-gradient(to right, #18f4a3 0%, #dafffe 25%, #00ffea 50%, #dafffe 75%, #18f4a3 100%); } .shake { animation: shake 0.2s infinite cubic-bezier(0.36, 0.07, 0.19, 0.97) alternate; transform: translate3d(0, 0, 0); backface-visibility: hidden; perspective: 1000px; } @keyframes shake { 10%, 90% { transform: translate3d(-1px, 0, 0); } 20%, 80% { transform: translate3d(-1px, 0, 0); } 30%, 50%, 70% { transform: translate3d(-2px, 0, 0); } 40%, 60% { transform: translate3d(2px, 0, 0); } } .shootingstar { position: absolute; width: 3px; height: 20px; border-radius: 50%; box-shadow: 0 0 6px 3px rgba(255, 255, 255, 0.15); background-color: #fff; z-index: -2; animation: shooting 10s infinite ease; } .shootingstar:nth-child(1) { left: 186px; top: 199px; animation-delay: calc(-400s / 1); } .shootingstar:nth-child(2) { left: 169px; top: 36px; animation-delay: calc(-400s / 2); } .shootingstar:nth-child(3) { left: 239px; top: 109px; animation-delay: calc(-400s / 3); } .shootingstar:nth-child(4) { left: 63px; top: 12px; animation-delay: calc(-400s / 4); } .shootingstar:nth-child(5) { left: 264px; top: 150px; animation-delay: calc(-400s / 5); } .shootingstar:nth-child(6) { left: 78px; top: 165px; animation-delay: calc(-400s / 6); } .shootingstar:nth-child(7) { left: 23px; top: 8px; animation-delay: calc(-400s / 7); } .shootingstar:nth-child(8) { left: 19px; top: 111px; animation-delay: calc(-400s / 8); } .shootingstar:nth-child(9) { left: 52px; top: 91px; animation-delay: calc(-400s / 9); } .shootingstar:nth-child(10) { left: 267px; top: 181px; animation-delay: calc(-400s / 10); } .shootingstar:nth-child(11) { left: 245px; top: 90px; animation-delay: calc(-400s / 11); } .shootingstar:nth-child(12) { left: 27px; top: 127px; animation-delay: calc(-400s / 12); } .shootingstar:nth-child(13) { left: 232px; top: 185px; animation-delay: calc(-400s / 13); } .shootingstar:nth-child(14) { left: 279px; top: 188px; animation-delay: calc(-400s / 14); } .shootingstar:nth-child(15) { left: 144px; top: 284px; animation-delay: calc(-400s / 15); } .shootingstar:nth-child(16) { left: 161px; top: 108px; animation-delay: calc(-400s / 16); } .shootingstar:nth-child(17) { left: 5px; top: 277px; animation-delay: calc(-400s / 17); } .shootingstar:nth-child(18) { left: 15px; top: 90px; animation-delay: calc(-400s / 18); } .shootingstar:nth-child(19) { left: 254px; top: 83px; animation-delay: calc(-400s / 19); } .shootingstar:nth-child(20) { left: 298px; top: 172px; animation-delay: calc(-400s / 20); } .shootingstar:nth-child(21) { left: 230px; top: 297px; animation-delay: calc(-400s / 21); } .shootingstar:nth-child(22) { left: 38px; top: 214px; animation-delay: calc(-400s / 22); } .shootingstar:nth-child(23) { left: 79px; top: 146px; animation-delay: calc(-400s / 23); } .shootingstar:nth-child(24) { left: 97px; top: 253px; animation-delay: calc(-400s / 24); } .shootingstar:nth-child(25) { left: 227px; top: 262px; animation-delay: calc(-400s / 25); } .shootingstar:nth-child(26) { left: 238px; top: 129px; animation-delay: calc(-400s / 26); } .shootingstar:nth-child(27) { left: 283px; top: 196px; animation-delay: calc(-400s / 27); } .shootingstar:nth-child(28) { left: 116px; top: 263px; animation-delay: calc(-400s / 28); } .shootingstar:nth-child(29) { left: 272px; top: 291px; animation-delay: calc(-400s / 29); } .shootingstar:nth-child(30) { left: 287px; top: 194px; animation-delay: calc(-400s / 30); } @keyframes shooting { 0% { opacity: 0; transform: translateY(-300px); } 50% { opacity: 1; } 100% { opacity: 0; transform: translateY(600px); } }
JavaScript
var tl = new TimelineMax({}); tl.addLabel('start', 0) .add(TweenMax.from(".takeoff", 0.5, {scaleY:0, y: -200, ease:Expo.easeInOut, delay:3})) .add(TweenMax.to("#rocket", 1 ,{className:"+=shake", delay:-1})) .add(TweenMax.to(".smoke", 2,{y: -50, delay: 1})) .add(TweenMax.to("#rocket", 1 ,{className: "-=shake"})) .add(TweenMax.to("#rocket",1, {y: -300, delay:-1})) .add(TweenMax.to(".takeoff",1, {y: -300, delay:-1})) .add(TweenMax.to(".smoke", 5,{scale: 1, y: -20, delay: -1})) .add(TweenMax.to("#rocket",1, {y: -10, rotate: 40, delay: -3})) .add(TweenMax.to(".takeoff",0.2, {opacity: 0, delay: -3})) .add(TweenMax.to(".stars",0.2, {opacity: 0, delay: -3})) .add(TweenMax.from(".stars2",0.2, {opacity: 0, delay: -3})) .add(TweenMax.to(".artboard",0.2, {rotation: 40, delay: -3})) .add(TweenMax.to(".smoke", 2,{opacity: 0, delay: -2}))
粒子
时间
文字
hover
canvas
3d
游戏
音乐
火焰
水波
轮播图
鼠标跟随
动画
css
加载动画
导航
菜单
按钮
滑块
tab
弹出层
统计图
svg
×
Close
在线代码下载提示
开通在线代码永久免费下载,需支付20jQ币
开通后,在线代码模块中所有代码可终身免费下!
您已开通在线代码永久免费下载,关闭提示框后,点下载代码可直接下载!
您已经开通过在线代码永久免费下载
对不起,您的jQ币不足!可通过发布资源 或
直接充值获取jQ币
取消
开通下载
<!doctype html> <html> <head> <meta charset="utf-8"> <title>GSAP-火箭动画-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号