css实现线条星形变换效果

代码语言:html

所属分类:布局界面

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


<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">

<style>
@import url('https://fonts.googleapis.com/css?family=Work+Sans:100&display=swap');

html {
  background:
    repeating-linear-gradient(
      45deg,
      #ccc,
      #ccc 1px,
      transparent 1px,
      transparent 10px
    ),
    repeating-linear-gradient(
      -45deg,
      #ccc,
      #ccc 1px,
      transparent 1px,
      transparent 10px
    );
}

body {
  display: grid;
  margin: 0;
  place-items: center;
  font-family: 'Work Sans', sans-serif;
  display: flex;
        justify-content: center;
        align-items: center;
        height: 100vh;
  width: 100vw;
  overflow: hidden;
}


svg{
  margin:0 auto;
}
#star2{
  stroke: #888;
  stroke-width: 0.25px;
  animation: star2 6s ease-.........完整代码请登录后点击上方下载按钮下载查看

网友评论0