单个div+css实现折叠地图效果代码

代码语言:html

所属分类:布局界面

代码描述:单个div+css实现折叠地图效果代码字幻灯片切换效果代码

代码标签: 单个 div css 折叠 地图

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

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

<head>
  <meta charset="UTF-8">

  
  
<style>
body {
  min-height: 350px;
  height: 100vh;
  position: relative;
  background-color: #40e0d0;
}
div {
  position: absolute;
  left: 50%;
  top: 50%;
}
div::before,
div::after {
  display: block;
  content: '';
  position: absolute;
}
@media (max-width: 400px) {
  div:not(.no-scale) {
    transform: scale(0.8);
  }
}
#pin {
  width: 18em;
  height: 14em;
  margin-left: -9em;
  margin-top: -6em;
  background: repeating-linear-gradient(160deg, rgba(255,255,255,0), rgba(255,255,255,0) 0.95em, white 0.95em 1em) 1% 40%/24% 75%, linear-gradient(white, white) 7% 60%/0.2% 75%, linear-gradient(white, white) 13% 55%/0.2% 75%, linear-gradient(white, white) 19% 43%/0.2% 75%, linear-gradient(white, white) 24.8% 30%/0.2% 75%, linear-gradient(160deg, rgba(255,255,255,0) 17%, #afeeee 17% 82%, rgba(255,255,255,0) 82%) 3.25% 0/22.5% 100%, linear-gradient(160deg, rgba(255,255,255,0) 15%, white 15% 85%, rgba(255,255,255,0) 85%) 0 0/25% 100%, repeating-linear-gradient(-160deg, rgba(255,255,255,0), rgba(255,255,255,0) 0.95em, #afeeee 0.95em 1em) 33.33% 48%/25% 79%, linear-gradient(#afeeee, #afeeee) 32% 35%/0.2% 75%, linear-gradient(#afeeee, #afeeee) 38% 50%/0.2% 75%, linear-gradient(#afeeee, #afeeee) 44% 60%/0.2% 75%, linear-gradient(-160deg, rgba(255,255,255,0) 18%, #8de7e7 18% 82%, rgba(255,255,255,0) 82%) 33.33% 0/25% 100%, linear-gradient(-160deg, rgba(255,255,255,0) 15%, #afeeee 15% 85%, rgba(255,255,255,0) 85%) 33.33% 0/25% 100%, repeating-linear-gradient(160deg, rgba(255,255,255,0), rgba(255,255,255,0) 0.95em, white 0.95em 1em) 66.66% 48%/25% 79%, linear-gradient(white, white) 56% 60%/0.2% 75%, linear-gradient(white, white) 62% 50%/0.2% .........完整代码请登录后点击上方下载按钮下载查看

网友评论0