gsap+css实现彩色激光扫射动画效果代码

代码语言:html

所属分类:动画

代码描述:gsap+css实现彩色激光扫射动画效果代码

代码标签: gsap css 彩色 激光 扫射 动画

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


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

<head>

  <meta charset="UTF-8">
  

  
  
  
<style>
/* give it some perspective */
.container {
	perspective: 30px;
}
.layer,
.layer1,
.layer2 {
	transform-style: preserve-3d;
	width: 100vw;
	height: 100vh;
}
.layer {
	position: relative;
	top: 0;
	background-image: linear-gradient(to right, transparent 5px, gold 10px);
	background-size: 12px;
}

.layer1 {
	position: absolute;
	top: 40%;
	left: 35%;
	transform: translateX(-50%) translateY(-50%) translateZ(100px);
	background-image: linear-gradient(to right, transparent 2px, blue 10px);
	background-size: 20px 100%;
}

.layer2 {
	position: absolute;
	top: 60%;
	left: 65%;
	transform: translateX(-50%) translateY(-50%) translateZ(250px);
	background-image: linear-gradient(to right, transparent 2px, green 10px);
	background-size: 15px 100%;
}

/* body styling and reset */
* {
	b.........完整代码请登录后点击上方下载按钮下载查看

网友评论0