js实现一个悬浮可展开的迷你音乐播放器效果代码
代码语言:html
所属分类:多媒体
代码描述:js实现一个悬浮可展开的迷你音乐播放器效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <style> body { margin:0; padding:0; background:#355260; } .circle { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); width:80px; height:80px; border-radius:50%; } .imgs { position:absolute; height:100%; width:100%; border-radius:50px; background:url("//repo.bfw.wiki/bfwrepo/image/5ef9ef9fbf5b0.png") no-repeat; background-size:100%; } .circle .share { position:relative; height:100%; width:100%; line-height:80px; text-align:center; color:#fff; border-radius:50%; z-index:1; box-shadow:0 0 0 2px #112833; } .circle ul { position:absolute; top:-58px; left:-58px; margin:0; padding:0; width:200px; height:200px; border-radius:50%; transition:.7s; z-index:-1; transform:scale(.3) rotate(-180deg); opacity:0; } .circle:hover ul { transform:scale(1) rotate(0deg); opacity:1; } .circle ul li { position:absolute; list-style:none; } .circle ul li:nth-child(1) { top:6px; left:50%; transform:translate(-50%); } .circle ul li:nth-child(2) { bottom:6px; left:50%; transform:translateX(-50%); } .circle ul li:nth-child(3) { left:6px; top:50%; transform:translateY(-50%); } .circle ul li:nth-child(4) { right:6px; top:50%; transform:translateY(-50%); } #yl { display:block; position:absolute; background-color:rgba(0,0,0,0.3); width:22px; height:65px; bottom:50px; left:15px; transform:rotate(180deg); transition:..........完整代码请登录后点击上方下载按钮下载查看
网友评论0