Toggle navigation
在线编辑器
在线代码
文本比较
jQuery下载
前端库
在线手册
登录/注册
下载代码
html
css
js
分享到微信朋友圈
X
html
css
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300&display=swap'); * { -moz-box-sizing: border-box; -webkit-box-sizing: border-box; margin: 0; padding: 0; box-sizing: border-box; font-family: 'Lato', sans-serif; } button { border: none; } body { background-color: #ff6666; } section { width: 100%; height: 100vh; display: flex; justify-content: center; align-items: center; flex-direction:column; } p{ font-size: 14px; margin-top: 30px; color:#612700; font-weight:bold; } a{ color:#C80312; text-decoration:none; } .wrapper { min-width: 290px; height: 320px; background: rgb(19, 19, 27); background: linear-gradient( 0deg, rgba(19, 19, 27, 1) 0%, rgba(40, 41, 46, 1) 100% ); border-radius: 17px; display: flex; align-items: center; flex-direction: column; position: relative; overflow: hidden; padding: 5px 15px; } .polka-dot { width: 180px; height: 23px; background-image: radial-gradient(circle, #161616 35%, transparent 9%), radial-gradient(circle, #161616 35%, transparent 9%); background-size: 10px 8px; background-position: 0 0, 0px 16px; } .player-wrapper { margin-top: 10px; width: 260px; height: 195px; background-color: #1d1e22; border-radius: 12px; padding: 5px; } .player-container { background: rgb(36, 39, 43); background: linear-gradient( 128deg, rgba(36, 39, 43, 1) 0%, rgba(49, 50, 58, 1) 100% ); height: 184px; height: 100%; border-radius: 8px; padding: 12px; position: relative; } .screws { width: 9px; height: 9px; position: absolute; top: 4px; left: 4px; border: 1px solid #1a1b1f; border-radius: 50%; } .screws:before { content: ""; position: absolute; left: 1px; top: 3px; width: 5px; height: 1px; background-color: #1a1b1f; } .screws:after { content: ""; position: absolute; left: 3px; top: 1px; width: 1px; height: 5px; background-color: #1a1b1f; } .player-container .screws.two { right: 4px; left: inherit; } .player-container .screws.three { bottom: 4px; top: inherit; } .player-container .screws.four { right: 4px; left: inherit; bottom: 4px; top: inherit; } .base { width: 167px; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); height: 38px; clip-path: polygon(7% 0%, 93% 0%, 100% 100%, 0% 100%); box-shadow: inset 0px 2px 4px #000; overflow: hidden; } .base:before { content: ""; position: absolute; left: -2px; bottom: 0; background-color: #000; width: 10px; height: 40px; transform: rotate(17deg); filter: blur(2px); } .base:after { content: ""; position: absolute; right: -6px; bottom: -1px; background-color: #ffffff70; width: 11px; height: 39px; transform: rotate(343deg); filter: blur(1px); } .bottom-base { position: absolute; height: 13px; width: 47px; box-shadow: inset 1px 2px 3px #0f0f13; bottom: 0; left: 50%; transform: translateX(-50%); } .player { background-color: #1b1b20; padding: 5px; height: 127px; position: relative; box-shadow: inset 0px 0px 5px rgba(0, 0, 0, 0.28); } .player:before { content: ""; position: absolute; left: -11px; top: -5px; width: 20px; height: 10px; background-color: #25282c; transform: rotate(-45deg); } .player:after { content: ""; position: absolute; right: -11px; top: -5px; width: 20px; height: 10px; background-color: #2d2e35; transform: rotate(227deg); } .cassete { height: 63px; background-color: #333338; box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.18); border-radius: 2px; transform: translateY(38px); display: flex; justify-content: center; align-items: center; } .rotator-container { background-color: #0f1010; width: 103px; height: 43px; position: relative; } .rotator-container:before { content: ""; position: absolute; top: -6px; left: -26px; background-color: rgba(187, 89, 85, 0.25); width: 56px; height: 56px; border-radius: 50%; } .left-cog { width: 32px; height: 32px; transform: translate(-14px, 6px); position: absolute; top: 0; left: -5px; } .right-cog { width: 32px; height: 32px; transform: translate(-14px, 6px); position: absolute; top: 0; right: -25px; } .right-cog:before { content: ""; position: absolute; top: -30px; left: -24px; width: 92px !important; height: 92px !important; background-color: rgba(187, 89, 85, 0.25); border-radius: 50%; } .chil1 { background-color: #a8a8a8; width: 42px; height: 42px; position: absolute; top: 50%; left: 0; z-index: 1; transform: translateY(-50%); border-radius: 50%; } .chil1:before { content: ""; position: absolute; top: 50%; left: 50%; width: 37px; height: 37px; background-color: #000; z-index: 1; border-radius: 50%; transform: translate(-50%, -50%); } .chil2 { background-color: #a8a8a8; width: 30px; height: 30px; position: absolute; top: 50%; left: 6px; z-index: 1; transform: translateY(-50%); border-radius: 50%; } .cog-img { position: absolute; top: 2px; left: 7px; z-index: 2; width: 28px; height: 28px; } .controls-container { width: 260px; height: 71px; background: rgb(28, 28, 33); background: linear-gradient(270deg, rgb(16 16 21) 0%, rgb(21 22 27) 100%); position: absolute; bottom: 0; left: 50%; border-top-left-radius: 12px; border-top-right-radius: 12px; transform: translateX(-50%); box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.15); display: flex; justify-content: center; align-items: flex-end; } .btn { height: 64px; width: 62px; background: rgb(27, 28, 31); background: linear-gradient( 0deg, rgba(27, 28, 31, 1) 0%, rgba(55, 56, 62, 1) 100% ); border-right: 1px solid #1c1d20; cursor: pointer; position: relative; } .btn:first-child { border-top-left-radius: 8px; } .btn:last-child { border-top-right-radius: 7px; } .btn:active, .btn.active { background: #191a1f; box-shadow: inset 4px 4px 5px rgba(0, 0, 0, 0.62); } .btn:active:before, .btn:active:after { opacity: 0.3; } .btn:before, .btn:after { content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); opacity: 0.5; } .btn:nth-child(1):before { width: 0px; height: 0px; border-top: 9px solid transparent; border-bottom: 9px solid transparent; border-left: 12px solid #fff; } .btn:nth-child(2):before { width: 0px; height: 0px; border-top: 9px solid transparent; border-bottom: 9px solid transparent; border-left: 12px solid #fff; transform: rotate(180deg) translate(13px, 9px); } .btn:nth-child(2):after { width: 0px; height: 0px; border-top: 9px solid transparent; border-bottom: 9px solid transparent; border-left: 12px solid #fff; transform: rotate(180deg) translate(1px, 9px); } .btn:nth-child(3):before { width: 15px; height: 15px; background: #fff; } .btn:nth-child(4):before { width: 0px; height: 0px; border-top: 9px solid transparent; border-bottom: 9px solid transparent; border-left: 12px solid #fff; transform: rotate(0deg) translate(-1px, -9px); } .btn:nth-child(4):after { width: 0px; height: 0px; border-top: 9px solid transparent; border-bottom: 9px solid transparent; border-left: 12px solid #fff; transform: rotate(0deg) translate(-13px, -9px); } @keyframes rotating { from { -webkit-transform: rotate(0deg); } to { -webkit-transform: rotate(360deg); } } .rotating { animation: rotating 3s linear infinite; }
JavaScript
var bgm = document.getElementById("player_audio"); function bgmPlay() { bgm.play(); $(".play").addClass("active"); $(".cog-img").addClass("rotating"); $(".stop").removeClass("active"); } function bgmStop() { bgm.pause(); bgm.currentTime = 0; $(".play").removeClass("active"); $(".stop").addClass("active"); $(".cog-img").removeClass("rotating"); }
粒子
时间
文字
hover
canvas
3d
游戏
音乐
火焰
水波
轮播图
鼠标跟随
动画
css
加载动画
导航
菜单
按钮
滑块
tab
弹出层
统计图
svg
×
Close
在线代码下载提示
开通在线代码永久免费下载,需支付20jQ币
开通后,在线代码模块中所有代码可终身免费下!
您已开通在线代码永久免费下载,关闭提示框后,点下载代码可直接下载!
您已经开通过在线代码永久免费下载
对不起,您的jQ币不足!可通过发布资源 或
直接充值获取jQ币
取消
开通下载
<!doctype html> <html> <head> <meta charset="utf-8"> <title>盒式播放器-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号