老式磁带机音乐播放器效果

代码语言:html

所属分类:多媒体

代码描述:老式磁带机音乐播放器效果,可实现播放暂停上一首下一首

代码标签: 播放器 效果

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html lang="en">
<head>
   
<meta charset="UTF-8">
<link type="text/css" rel="stylesheet" href="http://repo.bfw.wiki/bfwrepo/css/font-awesome-4.7.0/css/font-awesome.min.css">
   
<style>
       
* {
           
box-sizing: border-box;
       
}

        body
{
           
background: #f6dfda;
           
font-family: 'Righteous', cursive;
           
color: #10493e
       
}

       
.main {
           
position: absolute;
           
width: 100%;
       
}

        h1
{
           
position: absolute;
           
left: 180px;
           
letter-spacing: 5px;
           
text-shadow: 3px 3px 1px
           
#c1bbbd;
       
}

       
.alert {
           
position: relative;
           
top: 250px;
           
left: 270px;
           
width: 130px;
           
height: 60px;
           
z-index: 1;
           
text-align: center;
           
visibility: hidden;
           
padding-top: 10px;
       
}

       
.pop-up {
           
visibility: visible;
       
}

        svg
{
           
position: relative;
           
top: -50px;
           
width: 1000px;
           
height: 1000px;
       
}

        rect
{
           
fill: #30a996;
       
}

       
.mid-rect {
           
fill: #10493e;
       
}

       
.shadow {
           
filter: url(#shadow);
       
}

       
.shadow-2 {
           
filter: url(#shadow-2);
       
}

       
.spin {
           
transform-origin: center;
           
transform-box: fill-box;
           
animation: rotate-wheel 8s infinite linear;
       
}

@keyframes rotate-wheel {
            from
{
               
transform: rotate(0deg);
           
}
            to
{
               
transform: rotate(360deg);
           
}
       
}

       
.info {
           
position: relative;
           
top: -940px;
           
left: 100px;
           
width: 450px;
           
height: 10vh;
           
text-align: center;
           
font-size: 18px;
       
}

       
.buttons {
           
position: relative;
           
top: -650px;
           
left: 50px;

       
}

        i
{
           
color: #10493e;
           
font-size: 30px;

       
}

        i
.fa-music {
           
font-size: 15px;
       
}

        button
{
           
width: 140px;
           
height: 50px;
           
border-radius: 10px;
           
outline: none;
           
box-shadow: 2px 2px 3px
           
#8d8d8d inset;
       
}
   
</style>

</head>
<body translate="no">
   
<link href="https://fonts.googleapis.com/css2?family=Righteous&display=swap" rel="stylesheet">

   
<div class="main">
       
<h1>Queen's Playlist</h1>
       
<div class="alert"></div>
       
<svg viewbox="0 0 100 100">
           
<defs>
               
<filter id="shadow">
                   
<feDropShadow dx="0" dy="-0.3" stdDeviation="0.2" />
               
</filter>
           
</defs>
           
<defs>
               
<filter id="shadow-2">
                   
<feDropShadow dx="0" dy="0" stdDeviation="0.3" />
               
</filter>
           
</defs>
           
<path d="M5 10,
                Q5 8, 7 8,
                L60 8,
                Q62 8, 62 10,
                L62 45,
                Q62 47, 60 47,
                L7 47,
                Q5 47, 5 45
                L5 10"
fill="#30a996" />
           
<path d="M10 15,
                Q10 13, 12 13,
                L55 13,
                Q57 13, 57 15,
                L57 35,
                Q57 37, 55 37,
                L13 37,
                Q10 37, 10 35,
                L10 15"
fill="#e3dcaa" class="shadow-2" />
           
<path d="M15 47,
                L18 40,
                L50 40,
                L53 47,
                L15 47"
fill="#278775" class="shadow" />
           
<path d="M10 20,
                L57 20,
                L57 25,
                L10 25"
fill="#df2a13" />
   .........完整代码请登录后点击上方下载按钮下载查看

网友评论0