jquery-ui实现房子拖拽盖高楼效果代码

代码语言:html

所属分类:拖放

代码描述:jquery-ui实现房子拖拽盖高楼效果代码

代码标签: jquery-ui 拖拽 盖房子 盖楼

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


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

<head>

  <meta charset="UTF-8">

  
<style>
::-moz-selection {
  background: #ff8c2b;
  color: #ffd1aa;
}

::selection {
  background: #ff8c2b;
  color: #ffd1aa;
}

html, body {
  width: 100%;
  height: 100%;
}

body {
  overflow: hidden;
}

.scene {
  width: 100%;
  height: 100%;
  position: relative;
  display: grid;
  grid: "sky sky sky" 1fr "side-l building side-r" auto "street street street" 60px/1fr auto 1fr;
  background-image: linear-gradient(to top, #bdc2e8 0%, #bdc2e8 1%, #e6dee9 100%);
  background-image: linear-gradient(-20deg, #fc6076 0%, #ff9a44 100%);
}
.scene:before {
  content: "";
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  background: #ff9a44;
  mix-blend-mode: screen;
  opacity: 0.3;
  z-index: 1;
  -webkit-animation: overlay 10s cubic-bezier(0.785, 0.135, 0.15, 0.86) infinite;
          animation: overlay 10s cubic-bezier(0.785, 0.135, 0.15, 0.86) infinite;
}

.sky {
  grid-area: sky;
  position: relative;
  padding: 0 10px;
}
.sky h1 {
  font-size: 1.6rem;
  color: #1a1a1a;
  text-align: right;
  margin: 10px 0;
}
.sky p {
  text-align: right;
  margin: 0;
}

.side-l {
  grid-area: side-l;
  position: relative;
}
.side-l:before {
  content: "";
  display: block;
  position: absolute;
  width: calc(100% - 130px);
  height: 2px;
  background: #629dd2;
  right: 100px;
  top: 0;
  z-index: 99;
  opacity: 0.5;
}
.side-l .price {
  padding: 10px 20px;
  background: rgba(98, 157, 210, 0.7);
  border-radius: 10px 0 10px 10px;
  margin: 0 20px;
  display: inline-block;
  color: #fed330;
  font-size: 1.4rem;
  letter-spacing: 2px;
  position: relative;
  z-index: 100;
}

.side-r {
  grid-area: side-r;
  position: relative;
}

.building-wrap {
  grid-area: building;
  position: relative;
}
.building-wrap:before {
  content: "";
  display: block;
  position: absolute;
  width: calc(100% + 20px);
  height: 10px;
  background: #a5754a;
  top: -10px;
  left: -10px;
  box-shadow: inset 0 1px 0 0 rgba(0, 0, 0, 0.1);
}
.building-wrap:after {
  content: "";
  display: block;.........完整代码请登录后点击上方下载按钮下载查看

网友评论0