Toggle navigation
在线编辑器
在线代码
文本比较
jQuery下载
前端库
在线手册
登录/注册
下载代码
html
css
js
分享到微信朋友圈
X
html
css
* { box-sizing: border-box; } *::before, *::after { box-sizing: border-box; } body { display: flex; align-items: center; justify-content: center; margin: 0; min-height: 100vh; background: #00034b; } #container { width: 10rem; height: 16rem; } .ghost { position: relative; } .ghost .body { width: 10rem; height: 15.5rem; background: #fff; border-radius: 5rem 5rem 1rem 1rem; box-shadow: inset -1.25rem 0.025rem 0 #dbdbdb; animation: ghostFloat 2s linear infinite; } .ghost .body .face { position: absolute; top: 4.625rem; left: 3rem; } .ghost .body .face .eyes { width: 1.063rem; height: 1.438rem; background: #000449; border-radius: 50%; animation: eyesBlink 2s linear infinite; } .ghost .body .face .eyes::before { position: absolute; content: ""; width: inherit; height: inherit; left: 2.95rem; background: inherit; border-radius: inherit; } .ghost .body .face .blush { position: absolute; top: 1.95rem; right: 0.8rem; width: 1.125rem; height: 1.1325rem; background: #ffbeff; border-radius: 50%; } .ghost .body .face .blush::before { position: absolute; content: ""; left: 4.625rem; width: inherit; height: inherit; background: inherit; border-radius: inherit; } .ghost .body .line { position: relative; z-index: 3; top: 14rem; width: 8.75rem; height: 1.25rem; background: #fff; } .ghost .body .bottom { position: absolute; top: 14.25rem; } .ghost .body .bottom .circle { position: absolute; z-index: 2; width: 1.75rem; height: 1.75rem; background: #fff; border-radius: 0 0 1rem 1rem; } .ghost .body .bottom .circle:nth-child(1) { left: 0; } .ghost .body .bottom .circle:nth-child(2) { left: 2.75rem; border-radius: 1rem; } .ghost .body .bottom .circle:nth-child(3) { left: 5.5rem; border-radius: 1rem; } .ghost .body .bottom .circle:nth-child(4) { left: 8.25rem; box-shadow: inset -1.25rem 0.025rem 0 #dbdbdb; } .ghost .body .bottom .wave { position: relative; z-index: 1; left: 1.425rem; width: 1.625rem; height: 1.75rem; background: #c3c7cb; border-radius: 1rem; box-shadow: inset 0rem 1rem 0 #fff; } .ghost .body .bottom .wave::before { position: absolute; content: ""; left: 2.75rem; width: inherit; height: inherit; background: inherit; border-radius: inherit; box-shadow: inherit; } .ghost .body .bottom .wave::after { position: absolute; content: ""; left: 5.5rem; width: inherit; height: inherit; background: inherit; border-radius: inherit; box-shadow: inherit; } .ghost .shadow { position: absolute; z-index: -2; top: 18.25rem; width: 10rem; height: 1rem; background: #000031; border-radius: 50%; filter: blur(0.05rem); animation: shadowWidth 2s linear infinite; } .ghost .glow { position: absolute; z-index: -1; top: -0.625rem; left: -0.5rem; width: 11rem; height: 17rem; background: radial-gradient(circle at 50% 50%, #fff, #fff 40%, #fff 50%); border-radius: 5rem 5rem 1rem 1rem; opacity: 0.3625; filter: blur(1.125rem); animation: ghostFloat 2s linear infinite, glowBlur 2s linear infinite; } @supports (display: grid) { body { display: grid; grid-template-columns: repeat(4, 1fr); grid-gap: 0.625rem; grid-template-areas: ". main main ." ". main main ."; } #container { grid-area: main; align-self: center; justify-self: center; } } @keyframes ghostFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1rem); } } @keyframes eyesBlink { 0%, 30%, 38%, 100% { transform: translateY(0); height: 1.438rem; } 34%, 36% { transform: translateY(0.625rem); height: 0; } } @keyframes shadowWidth { 0%, 100% { width: 10rem; } 50% { width: 8rem; transform: translateX(1rem); } } @keyframes glowBlur { 0%, 50%, 100% { opacity: 0.3625; filter: blur(1.125rem); } 25%, 75% { opacity: 0.25; filter: blur(0.85rem); } }
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号