react视觉差异拖动相册效果

代码语言:html

所属分类:视觉差异

代码描述:react视觉差异拖动相册效果

代码标签: 拖动 相册 效果

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


<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">

<style>
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-drag: none;
  user-select: none;
  -moz-user-select: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}

body {
  background-color: rgb(247, 247, 247);
}

#root {
  display: flex;
  align-items: center;
  justify-content: center;
}

#app {
  position: relative;
  width: 400px;
  height: 100vh;
  background-color: rgb(255, 255, 255);
  display: flex;
  flex-direction: column;
  font-family: Roboto-Regular, HelveticaNeue, Arial, sans-serif;
  /* align-items: center;
  justify-content: space-between; */
        box-shadow: 0px 0px 25px -8px rgba(0,0,0,0.25);
  padding-left: 0px;
  overflow: hidden;
}

#card {
  position: absolute;
  width: 240px;
  height: 400px;
  background-color: rgb(255, 255, 255);
  border-radius: 20px;
  overflow: none;
  padding: 12px;
  box-shadow: 0px 27px 63px -24px rgba(0, 0, 0, 0.5);
}

#nav {
  position: relative;
  display: flex;
  flex-direction: row;
}

#profile {
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  right: 40px;
  bottom: -18px;
  box-shadow: 0px 0px 49px -16px rgba(0, 0, 0, 1);
}

#imgContainer {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  background-color: rgb(235, 235, 235);
  overflow: hidden;
}

h1 {
  font-size: 40px;
  margin-left: 30px;
  margin-top: 45px;
}

#nav {
  margin-left: 30px;
  width: auto;
  margin-top: 45px;
}

#el {
  color: rgb(153, 153, 153);
  margin-right: 28px;
}

#user {
  width: 50px;
  height: 50px;
  border: 5px solid rgb(255, 255, 255);
  border-radius: 50%;
  background-image: url(http://repo.bfw.wiki/bfwrepo/image/5d653be845a41.png?x-oss-process=image/auto-orient,1/resize,m_fill,w_100,h_100,/quality,q_90);
  margin-right: 22px;
  background-size: cover;
  margin-top: 43px;
  box-shadow: 0px 0px 30px 2px rgba(0, 0, 0, 0.115);
}

#infocontainer {
  background-color: rgb(255, 255, 255);
  width: 100%;
  height: 40vh;
  border-radius: 30px 30px 0px 0px;
  position: absolute;
  padding: 26px;
  z-index: 10;
}

#detailName {
  font-size: 30px;
  font-weight: bold;
  margin-bottom: 10px;
}

#follow {
  font-size: 15px;
  p.........完整代码请登录后点击上方下载按钮下载查看

网友评论0