一个div布局实现忍者神龟效果代码

代码语言:html

所属分类:布局界面

代码描述:一个div布局实现忍者神龟效果代码

代码标签: 实现 忍者 神龟 效果

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


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

<head>

  <meta charset="UTF-8">


  
  
<style>
body {
  min-height: 300px;
  height: 100vh;
  position: relative;
  background-color: #556b2f;
}
div {
  position: absolute;
  left: 50%;
  top: 50%;
}
div:before,
div:after {
  display: block;
  content: '';
  position: absolute;
}
@media (max-width: 400px) {
  div:not(.no-scale) {
    -webkit-transform: scale(0.8);
            transform: scale(0.8);
  }
}
#turtle {
  width: 15em;
  height: 15em;
  margin-left: -7.5em;
  margin-top: -7.5em;
  background-repeat: no-repeat;
  background-image: radial-gradient(ellipse at 50% 100%, #32cd32 50%, #6b8e23 50.5%, #6b8e23 56%, rgba(107,142,35,0) 56.5%), radial-gradient(ellipse at 50% 100%, #32cd32 50%, #6b8e23 50.5%, #6b8e23 56%, rgba(107,142,35,0) 56.5%), radial-gradient(ellipse at 50% 100%, #32cd32 50%, #6b8e23 50.5%, #6b8e23 56%, rgba(107,142,35,0) 56.5%), radial-gradient(ellipse at 50% 100%, #32cd32 50%, #6b8e23 50.5%, #6b8e23 56%, rgba(107,142,35,0) 56.5%), linear-gradient(#ff6347, #ff6347), linear-gradient(-330deg, #ff6347 20%, rgba(255,99,71,0) 21%), linear-gradient(-220deg, #ff6347 20%, rgba(255,99,71,0) 21%), linear-gradient(#ffa500, #ffa500), linear-gradient(330deg, #ffa500 20%, rgba(255,165,0,0) 21%), linear-gradient(220deg, #ffa500 20%, rgba(255,165,0,0) 21%), linear-gradient(#1e90ff, #1e90ff), linear-gradient(-330deg, #1e90ff 20%, rgba(30,144,255,0) 21%), linear-gradient(-220deg, #1e90ff 20%, rgba(30,144,255,0) 21%), linear-gradient(#9370db, #9370db), linear-gradient(330deg, #9370db 20%, rgba(147,112,219,0) 21%), linear-gradient(220deg, #9370db 20%, rgba(147,112,219,0) 21%), radial-gradient(ellipse at 50% 0, transparent 40%, #32cd32 41%, #32cd32 65%, rgba(50,205,50,0) 66%), linear-gradient(to bottom, #fff 40%, #444 40%), radial-gradient(ellipse at 50% 0, transparent 4.........完整代码请登录后点击上方下载按钮下载查看

网友评论0