css布局实现老式crt大屁股显示器电脑开机输入命令动画效果代码
代码语言:html
所属分类:布局界面
代码描述:css布局实现老式crt大屁股显示器电脑开机输入命令动画效果代码
代码标签: 老式 crt 大 屁股 显示器 电脑 开机 输入 命令 动画 效果
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> @font-face { font-family: "EnterCommand"; src: url(https://manz.dev/assets/fonts/entercommand.woff2) format("woff2"), url(https://manz.dev/assets/fonts/entercommand.woff) format("woff"); } :root { --monitor-light-color: #d3ccbc; --monitor-dark-color: #ccc5b3; --monitor-shadow-light: #d7d4c1; --monitor-shadow-medium: #b7b19b; --monitor-shadow-dark: #908e7a; --monitor-shadow-very-dark: #6e6d5f; --monitor-gradient: linear-gradient( to bottom, var(--monitor-light-color), var(--monitor-dark-color) ); --monitor-shadow-texture: 2px -2px 30px #493e2a33 inset, -2px -2px 30px #493e2a33 inset, 1px -1px 1px #493e2a33 inset, -1px -1px 1px #493e2a33 inset, 0 2px 30px #ddd inset; } body { background: #336; } .container { display: flex; justify-content: center; margin-top: 3em; } .computer-container { --width-monitor: 500px; --height-monitor: 450px; display: flex; flex-direction: column; align-items: center; } .computer-container .monitor { display: flex; flex-direction: column; justify-content: center; position: relative; align-items: center; width: var(--width-monitor); height: var(--height-monitor); background: var(--monitor-gradient); border-radius: 5px; box-shadow: var(--monitor-shadow-texture); } .computer-container .monitor .monitor-inner { width: calc(var(--width-monitor) * 0.75); height: calc(var(--height-monitor) * 0.7); border-radius: 5px; display: flex; justify-content: center; align-items: center; background: #000; border: 15px solid var(--monitor-shadow-medium); border-top: 15px solid var(--monitor-shadow-dark); border-bottom: 15px solid var(--monitor-shadow-light); } .computer-container .monitor .monitor-inner .screen-container { width: calc(var(--width-monitor) * 0.72); height: calc(var(--height-monitor) * 0.68); background: #222; border-radius: 5px; display: flex; flex-direction: column; justify-content: space-between; align-items: center; border: 3px solid #000; box-shadow: 10px 10px 20px 14px #0008 inset, -10px -10px 20px 14px #0008 inset; position: rela.........完整代码请登录后点击上方下载按钮下载查看
网友评论0