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%,
      r.........完整代码请登录后点击上方下载按钮下载查看

网友评论0