css布局实现盒式录音带播放音乐效果代码
代码语言:html
所属分类:动画
代码描述:css布局实现盒式录音带播放音乐效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> @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: #f3c74b; } 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: a.........完整代码请登录后点击上方下载按钮下载查看
网友评论0