css+js实现老式大屁股电视机屏幕无信号闪屏动画效果代码
代码语言:html
所属分类:布局界面
代码描述:css+js实现老式大屁股电视机屏幕无信号闪屏动画效果代码
代码标签: css js 老式 大屁股 电视机 屏幕 无信号 闪屏 动画
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> body { display: flex; justify-content: center; align-items: center; height: 100vh; background-color: #1a1a1a; margin: 0; font-family: Arial, sans-serif; } .tv-container { position: relative; width: 600px; height: 350px; perspective: 500px; } .tv-body { position: absolute; width: 100%; height: 100%; background-color: #8b6b3d; border-radius: 15px; display: flex; } .tv-screen-container { flex: 5; padding: 15px; } .tv-screen-outer { background-color: #5d4827; height: 100%; border-radius: 20px; padding: 15px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; } .tv-screen { position: relative; width: 100%; height: 100%; background: #5e5e5e; border-radius: 60px; overflow: hidden; border: 5px solid #333; } .tv-screen::before{ content:""; position: absolute; top:0; left;0; width: 100%; height: 100%; background: linear-gradient( rgba(18, 16, 16, 0.8) 50%, rgba(0, 0, 0, 0.8) 100% ); } .static { position: relative; width: 100%; height: 100%; } .static::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: repeating-radial-gradient( circle at 17% 32%, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 1% ), repeating-radial-gradient( circle at 82% 65%, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 1% ); opacity: 0.2; animation: staticAnimation 0.5s infinite; } .vignette { position: absolute; top: 0; left: 0; width: 100%; height: 100%; box-shadow: inset 0 0 90px rgba(0, 0, 0, 0.8); border-radius: 55px; pointer-events: none; } .tv-controls { flex: 1; background-color: #5f4a25; border-radius: 0 15px 15px 0; padding: 20px 15px; display: flex; flex-direction: column; justify-content: space-between; } .speaker { height: 230px; background-color: #5d4827; border-radius: 5px; display: grid; grid-template-columns: repeat(10, 1fr); grid-template-rows: repeat(25, 1fr); gap: 3px; padding: 5px; } .speaker-hole { background-color: #3d3019; border-radius: 3px; } .knob-container { display: flex; flex-direction: column; align-items: center; margin: 10px 0; } .knob { width: 40px; height: 40px; background: radial-gradient(#d0b078, #a18452); border-radius: 50%; position: relative; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4); } .knob::after { content: ""; .........完整代码请登录后点击上方下载按钮下载查看
网友评论0