css+js实现鼠标滚轮滚动缩放画廊相册代码

代码语言:html

所属分类:画廊相册

代码描述:css+js实现鼠标滚轮滚动缩放画廊相册代码

代码标签: css js 鼠标 滚轮 滚动 缩放 画廊 相册 代码

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

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

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

  
<style>
@import url(https://fonts.bunny.net/css?family=jura:300,500);
@layer base, demo;

@layer demo {

	:root {
		--gap-base: 10px;
		--size-base: 100px;
		--line-color: rgba(255 255 255 / 0.1);
	}


	@property --gap {
		syntax: "<length>";
		inherits: true;
		initial-value: 0;
	}
	@property --scale {
		syntax: "<number>";
		inherits: true;
		initial-value: 1;
	}
	@property --x {
		syntax: "<percent>";
		inherits: true;
		initial-value: 0;
	}
	@property --y {
		syntax: "<percent>";
		inherits: true;
		initial-value: 0;
	}
	@property --lines-opacity {
		syntax: "<number>";
		inherits: true;
		initial-value: 1;
	}
	@property --text-opacity {
		syntax: "<number>";
		inherits: true;
		initial-value: 1;
	}
	@property --mouse-rotate {
		syntax: "<angle>";
		inherits: true;
		initial-value: 0deg;
	}
	@property --txt-x {
		syntax: "<length>";
		inherits: true;
		initial-value: 0px;
	}
	@property --txt-y {
		syntax: "<length>";
		inherits: true;
		initial-value: 0px;
	}

	.wrapper {
		--gap: 1rem;
		--x: 0;
		--scale: 1;
		position: fixed;
		inset: 0;
		wid.........完整代码请登录后点击上方下载按钮下载查看

网友评论0