弹出光盘音乐播放器效果
代码语言:html
所属分类:多媒体
代码描述:弹出光盘音乐播放器效果
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <style> @import url(https://fonts.googleapis.com/css?family=Raleway:400,300,700); *, *:before, *:after { box-sizing: border-box; } body { background-color: #fef29c; color: #515044; font-family: 'Raleway', sans-serif; } .music-player-container { -webkit-transform: translate(-50%, -50%); -moz-transform: translate(-50%, -50%); -ms-transform: translate(-50%, -50%); -o-transform: translate(-50%, -50%); transform: translate(-50%, -50%); display: inline-block; height: 370px; position: absolute; min-width: 460px; left: 50%; top: 50%; } .music-player-container:after { -webkit-filter: blur(8px); filter: blur(8px); background-color: rgba(0, 0, 0, 0.8); bottom: -2px; content: ' '; display: block; height: 10px; left: 19px; position: absolute; transform: rotate(-3deg); width: 70%; z-index: 0; } .music-player { background-color: #fff; height: 370px; padding: 40px 250px 40px 40px; position: absolute; text-align: right; width: 460px; z-index: 3; } .player-content-container { -webkit-transform: translateY(-50%); -moz-transform: translateY(-50%); -ms-transform: translateY(-50%); -o-transform: translateY(-50%); transform: translateY(-50%); top: 50%; position: relative; } .artist-name { font-size: 28px; font-weight: normal; margin: 0 0 0.75em 0; } .album-title { font-weight: 200; font-size: 24px; margin: 0 0 1.75em 0; } .song-title { font-size: 18px; font-weight: 200; margin: 0 0 1.5em 0; } .album { box-shadow: 3px 3px 15px rgba(0, 0, 0, 0.65); height: 315px; margin-left: 250px; margin-top: 27px; position: relative; width: 315px; z-index: 10; } .album-art { background: #fff url("http://repo.bfw.wiki/bfwrepo/image/5ef9ef9fbf5b0.png") center/cover no-repeat; height: 315px; position: relative; width: 315px; z-index: 10; } .vinyl { -webkit-animation: spin 2s linear infinite; -moz-animation: spin 2s linear infinite; animation: spin 2s linear infinite; -webkit-transition: all 500ms; -moz-transition: all 500ms; transition: all 500ms; background-image: url("http://repo.bfw.wiki/bfwrepo/image/5ef9f1fd6dc30.png"); background-position: center, center; background-size: cover, 40% auto; background-repeat: no-repeat; border-radius: 100%; box-shadow: 0 0 10px rgba(0, 0, 0, 0.8); height: 300px; left: 0; position: absolute; top: 5px; width: 300px; z-index: 5; will-change: transform, left; } .is-playing .vinyl { left: 52%; } .music-player-controls { text-align: center; } [class^="control-"] { -webkit-filter: brightness(.........完整代码请登录后点击上方下载按钮下载查看
网友评论0