js实现可调节参数属性的彩色正方形旋转发射动画效果代码
代码语言:html
所属分类:动画
代码描述:js实现可调节参数属性的彩色正方形旋转发射动画效果代码
代码标签: js 调节 参数 属性 彩色 正方形 旋转 发射 动画
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
  <meta charset="UTF-8">
  
  
<style>
@import url("https://fonts.googleapis.com/css2?family=Roboto&display=swap");
@property --degs {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
:root {
  --degs: 0deg;
  --incrementor: 0deg;
  --rotation: 0deg;
}
html,
body {
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: black;
  font-family: "Roboto", sans-serif;
}
#container {
  height: inherit;
  width: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
}
#container * {
  border-style: solid;
  position: absolute;
  border-image-slice: 1;
  border-image-source: linear-gradient(
    var(--degs),
    #1d9f9f,
    #0099b8,
    #008ed0,
    #007edd,
    #7165d4,
    #a254c3,
    #c53ea9,
 .........完整代码请登录后点击上方下载按钮下载查看
















			
			
				
			
	
网友评论0