css实现图片filter拖动对比效果代码

代码语言:html

所属分类:其他

代码描述:css实现图片filter拖动对比效果代码

代码标签: css 图片 filter 拖动 对比

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

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

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

  
  
  
<style>
:root {
	--tra: all 0.5s ease 0s;
}

body {
	margin: 0;
	padding: 0;
	overflow: hidden;
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100vw;
	height: 100vh;
	font-family: Arial, Helvetica, serif;
	background: radial-gradient(circle at 50% 0%, #000, #333);
}

body:before {
  content: "IMAGES FROM UNSPLASH.COM";
  position: absolute;
  color: #fff0;
  left: 50%;
  transform: translateX(-50%);
  text-shadow: 0 1px 1px #333d, 0 -1px 1px #ffffff82;
  font-family: Arial, serif;
  font-size: 1.3vmin;
	margin-top: -86.5vmin;
}

body * { 
	box-sizing: border-box; 
}

.comparsion {
	width: 40vmin;
	height: 30vmin;
	position: re.........完整代码请登录后点击上方下载按钮下载查看

网友评论0