久久资源网

css3黑夜月亮山水背景场景

css3黑夜月亮山水背景场景

2019-07-03 20:22:28 CSS3实例

售价:5.00积分 会员免费

特别声明:资源售价只是赞助,不代表代码或者素材本身点数。收取费用仅维持本站的日常运营所需!

css3黑夜月亮山水背景场景

这是一款css3绘制的黑夜星空下月亮山水森林图像背景特效。

使用方法

1、head引入css文件

<link rel="stylesheet" href="css/style.css" />

2、body引入部分

<div class="wrapper">
  <div class="star" id="star1">.</div>
  <div class="star" id="star2">.</div>
  <div class="star" id="star3">.</div>
  <div class="star" id="star4">.</div>
  <div class="star" id="star5">.</div>
  <div class="moon"></div>
  <div class="mountain"></div>
  <div class="tree l1" id="tree1"></div>
  <div class="tree l1" id="tree2"></div>
  <div class="tree l1" id="tree3"></div>
  <div class="tree l1" id="tree4"></div>
  <div class="tree l2" id="tree5"></div>
  <div class="tree l2" id="tree6"></div>
  <div class="tree l2" id="tree7"></div>
  <div class="tree l2" id="tree8"></div>
  <div class="tree l3" id="tree9"></div>
  <div class="tree l3" id="tree10"></div>
  <div class="tree l3" id="tree11"></div>
  <div class="tree l3" id="tree12"></div>
</div>

资源出处:https://www.moyublog.com/codes/9326.html

关注微信