div+css实现墙壁上的霓虹灯文字闪烁动画效果代码

代码语言:html

所属分类:动画

代码描述:div+css实现墙壁上的霓虹灯文字闪烁动画效果代码

代码标签: div css 墙壁 霓虹灯 文字 闪烁 动画

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html lang="en" >

<head>
  <meta charset="UTF-8">
  

  
  
<style>
:root {
	--author: "Matt Cannon";
	--contact: "mc@mattcannon.design";
	--description: "Glowing neon words set against a perspective brick wall. The combination of bold typography, vibrant animations, and textured design creates an immersive visual experience.";
	--keywords: "neon text, typography, text animation, CSS art, glowing words, Houdini quote, wall of text, artistic design";
	--last-modified: "2024-11-19";
	--content-language: "en";
	--generator: "HTML5, CSS3, JavaScript, Keyframes Animation";
	--title: "Neon Wall of Text";
}

@font-face {
	font-family: "neontubes2";

		url("//repo.bfw.wiki/bfwrepo/bfwrepo/font/neon-tubes-2.woff2")
			format("woff2");
	font-weight: normal;
	font-style: normal;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	background: #000;
	font-family: "neontubes2", sans-serif;
	display: flex;
	justify-content: center;
	align-items: center;
	height: 100vh;
	overflow: hidden;
	perspective: 1200px;
}

.container {
	transform: rotateY(-40deg);
	transform-origin: center;
	width: 200vw;
	height: 200vh;
	background: linear-gradient(
			90deg,
			black 0%,
			rgba(0, 0, 0, 0) 40%,
			rgba(0, 0, 0, 0) 60%,
			black 100%
		),
		linear-gradient(
			180deg,
			black 0%,
			rgba(0, 0, 0, 0) 40%,
			rgba(0, 0, 0, 0) 60%,
			black 100%
		),
		url("//repo.bfw.wiki/bfwrepo/image/673eab5be8473.png");
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	position: relative;
	margin: -50vh -50vw;
}

.container::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to right,
		transparent 0%,
		transparent 80%,
		rgba(0, 0, 0, 0.8) 100%
	);
	pointer-events: none;
	opacity: 1;
	z-index: 2;
}

.neon-wall {
	position: relative;
	z-index: 2;
	display: flex;
	justify-content: center;
	align-items: center;
	height: 100%;
}

.quote-wrapper {
	width: 50%;
	text-.........完整代码请登录后点击上方下载按钮下载查看

网友评论0