svg的filter实现分形噪影能量波动动画效果代码

代码语言:html

所属分类:动画

代码描述:svg的filter实现分形噪影能量波动动画效果代码

代码标签: svg filter 分形 噪影 能量 波动 动画

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

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

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

  
<style>
body {
	background-color: black;
	color: white;
	font-family: "Courier New", Courier, monospace;
	margin: 0;
	padding: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	height: 100vh;
}

.container {
	width: 100%; /* Past zich aan de breedte van het scherm aan */
	max-width: 1024px; /* Maximale breedte */
	aspect-ratio: 1/1; /* Houdt een 1:1 verhouding vast (1024px x 1024px) */
	background-image: url("//repo.bfw.wiki/bfwrepo/image/64dc62c2919b0.png");
	background-size: cover; /* Zorgt dat de afbeelding de hele container bedekt */
	background-position: center; /* Centreert de afbeelding */
	background-repeat: no-repeat;
}

.smoke {
	filter: url("#filter");
}
</style>



  
  
</head>

<body translate="no">
  <div class="container smoke">
	<svg width="0">
		<filter id="filter">
			<feTurbulence id="turbulence" type="fractalNoise" baseFrequency=".03" numOctaves=".........完整代码请登录后点击上方下载按钮下载查看

网友评论0