gsap+pixi+pixi实现简洁音乐播放器代码
代码语言:html
所属分类:多媒体
代码描述:gsap+pixi+pixi实现简洁音乐播放器代码效果代码,可切换歌曲。
代码标签: gsap pixi pixi 简洁 音乐 播放器 代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<style>
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&family=Lato:wght@100;300;400;700;900&family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');
</style>
<link rel="stylesheet" href="https://use.typekit.net/lur2ajg.css">
<link rel="stylesheet" href="https://use.typekit.net/nmu2ane.css">
<link rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css'>
<link rel='stylesheet' href='https://use.typekit.net/lur2ajg.css'>
<style>
* {
box-sizing: border-box;
}
body {
height: 100%;
min-height: 100vh;
margin: auto;
max-width: 100%;
width: 100vh;
background-repeat: no-repeat;
background-size: cover;
background-position: 50% 50%;
height: 100vh;
width: 100vw;
display: flex;
justify-content: center;
align-items: center;
}
.demoWrapper {
padding: 10px;
background: white;
box-sizing: border-box;
resize: horizontal;
border: 1px dashed;
overflow: auto;
max-width: 100%;
height: calc(100vh - 16px);
}
.wrapper {
position: relative;
position: absolute;
/*height: 420px;*/
width: 300px;
border-radius: 15px;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
overflow: visible;
text-shadow: 0 0.025em black;
position: relative;
margin: auto;
}
.container {
width: clamp(45%, 280px, 40vw);
height: clamp(340px, 70vh, 90%);
align-items: center;
justify-content: center;
padding: 20px 10px;
margin: auto;
position: relative;
backdrop-filter: blur(18px) saturate(1.25);
box-sizing: border-box;
z-index: 2;
border-radius: 15px;
display: flex;
flex-direction: column;
text-shadow: 0 0.025em rgb(69 82 98);
box-shadow: 0px 1px 24px -1px rgba(0, 0, 0, 0.2),
0 1.5em 2em -1em rgba(0, 0, 0, 0.8), inset 0 0.0625em 0 white,
inset 0 -0.125em 0.0625em rgba(0, 0, 0, 0.3);
border: 2px outset rgba(255, 255, 255, 0.3);
background-image: linear-gradient(
145deg,
rgba(255, 255, 255, 0.15),
transparent
);
background-color: rgba(0, 0, 0, 0.05);
transform: scale(1.1);
}
.track_image {
display: flex;
position: relative;
justify-content: center;
margin-top: 5px;
margin-bottom: 10px;
}
.trackbuttons {
display: flex;
align-items: center;
width: 56%;
justify-content: space-around;
margin: 4px 10px;
margin.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0