js+css实现照片堆叠拖动滤镜调整效果代码

代码语言:html

所属分类:拖放

代码描述:js+css实现照片堆叠拖动滤镜调整效果代码

代码标签: js css 照片 堆叠 拖动 滤镜 调整

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

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

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

  
  
<style>
@import url('https://fonts.googleapis.com/css2?family=Over+the+Rainbow&display=swap');

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  background-color: #47345c;
}

button {
	display: block;
	position: fixed;
	color: white;
	text-align: center;
	font-weight: bold;
	width: 145px;
	box-shadow: rgba(0, 0, 0, 0.17) 0px -23px 25px 0px inset, rgba(0, 0, 0, 0.15) 0px -36px 30px 0px inset, rgba(0, 0, 0, 0.1) 0px -79px 40px 0px inset, rgba(0, 0, 0, 0.06) 0px 2px 1px, rgba(0, 0, 0, 0.09) 0px 4px 2px, rgba(0, 0, 0, 0.09) 0px 8px 4px, rgba(0, 0, 0, 0.09) 0px 16px 8px, rgba(0, 0, 0, 0.09) 0px 32px 16px;
	border: none;
	border-radius: 6px;
	padding: 12px 0px;
	z-index: 100;
}

.reset {
	background-color: #dbd0f5;
}

.preset {
	background-color: #cfa6ff;
}

#reset-stack {
	bottom: 20px;
	right: 20px;
}

#reset-filter {
	bottom: 70px;
	right: 20px;
} 

/* PRESET ONE */
#invert-btn {
	bottom: 270px;
	right: 20px;
}

/* PRESET TWO */
#bright-btn {
	bottom: 220px;
	right: 20px;
}

/* PRESET THREE */
#contrast-btn {
	bottom: 170px;
	right: 20px;
}

/* PRESET FOUR */
#blur-btn {
	bottom: 120px;
	right: 20px;
}

button:active {
	background-color: white;
	box-shadow: rgba(50, 50, 93, 0.25) 0px 30px 60px -12px inset, rgba(0, 0, 0, 0.3) 0px 18px 36px -18px inset;
	color: #967dd1;
}


.gallery {
  position: absolute;
  top: 50%;
  left: 50%;
}

.photo-container {
	display: inline-block;
  position: absolute;
  top: 0;
  left: 0;
	transform: translate(-50%, -50%);
  user-select: none;
	font-family: 'Over the Rainbow', cursive;
	background-color: white;
	margin: 0px;
	padding: 6px 6px 18px;
	width: 200px;
	height: 236px;
  border-radius: 2px;
  box-shadow:
    rgba(50, 50, 93, 0.25) 0px 50px 100px -20px,
    rgba(0, 0, 0, 0.3) 0px 30px 60px -30px,
    rgba(10, 37, 64, 0.35) 0px -2px 6px 0px inset;
	z-index: 1;
  cursor: pointer;
}

.photo {
  text-align: c.........完整代码请登录后点击上方下载按钮下载查看

网友评论0