css实现立体带有夜光效果的旋转灯代码

代码语言:html

所属分类:布局界面

代码描述:css实现立体带有夜光效果的旋转灯代码

代码标签: css 立体 夜光 旋转灯 代码

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


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

<head>

  <meta charset="UTF-8">

  
  
  
  
<style>
* {
	padding: 0;
	margin: 0;
	box-sizing: border-box;
}
body {
	min-height: 100vh;
	background: #1d0035;
	overflow: hidden;
}
section {
	position: absolute;
	width: 100%;
	height: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	transform-style: preserve-3d;
	perspective: 700px;
}
.box {
	position: absolute;
	transform-style: preserve-3d;
	top: 100px;
}
.box .cube {
	position: relative;
	width: 200px;
	height: 200px;
	transform-style: preserve-3d;
	animation: animateCube 30s linear infinite;
}
@keyframes animateCube {
	0% {
		transform: rotateY(0deg);
	}
	100% {
		transform: rotateY(360deg);
	}
}
.box .cube div {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	transform-style: preserve-3d;
}
.box .cube div span {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: radial-gradient(#fb6200, #fb6200, #c3300f);
	filter: brightness(1.5);
	transform: rotateY(calc(90deg * var(-.........完整代码请登录后点击上方下载按钮下载查看

网友评论0