svg+css实现星爆Starburst背景效果代码

代码语言:html

所属分类:背景

代码描述:svg+css实现星爆Starburst背景效果代码

代码标签: svg css 星爆 Starburst 背景

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


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

<head>

  <meta charset="UTF-8">

  
  
  
<style>
html,
body {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
}

body {
  background: #3db0f7;
}

svg {
  display: block;
  width: 1000px;
  margin: 0 auto;
}
</style>




</head>

<body  >
  <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="1000px" height="1000px" viewBox="0 0 1000 1000" xml:space="preserve">
  <defs>
    <radialGradient id="burst" cx="500" cy="500" r="500" gradientUnits="userSpaceOnUse">
      <stop offset="0" style="stop-color:#FFF;stop-opacity:0.4" />
      <stop offset="1" style="stop-color:#FFF;stop-opacity:0" />
    </radialGradient>
    <style type="text/css">
      .star {
        opacity: 0.75;
.........完整代码请登录后点击上方下载按钮下载查看

网友评论0