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-c.........完整代码请登录后点击上方下载按钮下载查看

网友评论0