js+css实现网页滚定式驱动照片对比多图片轮换效果代码

代码语言:html

所属分类:加载滚动

代码描述:js+css实现网页滚定式驱动照片对比多图片轮换效果代码

代码标签: js css 网页 滚定 驱动 照片 对比 多图片 轮换

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

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

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

  
  
  
<style>
@property --scroll-progress {
	inherits: true;
	initial-value: 0;
	syntax: "<number>";
}

@property --layer-index {
	syntax: "<integer>";
	inherits: true;
	initial-value: 1;
}

@property --layer-count {
	syntax: "<integer>";
	inherits: true;
	initial-value: 1;
}

@property --divider-index {
	syntax: "<integer>";
	inherits: true;
	initial-value: 1;
}

@property --divider-count {
	syntax: "<integer>";
	inherits: true;
	initial-value: 1;
}

@layer reset,
base,
typography,
comparator,
links;

@layer reset {
	*,
	*::after,
	*::before {
		box-sizing: border-box;
		margin: 0;
		padding: 0;
	}

	html {
		color-scheme: light dark;
		-webkit-text-size-adjust: 100%;
		-moz-text-size-adjust: 100%;
		text-size-adjust: 100%;
		overflow-y: scroll;
	}
}

@layer base {
	:root {
		--color-light: #fafafa;
		--color-dark: #1f1408;
		--color-light-lighter: color-mix(in oklch, var(--color-light), #fff 10%);
		--color-light-darker: color-mix(in oklch, var(--color-light), #000 10%);
		--color-dark-lighter: color-mix(in oklch, var(--color-dark), #fff 10%);
		--color-dark-darker: color-mix(in oklch, var(--color-dark), #000 10%);
		--color-bg: var(--color-light);
		--color-bg-alt: var(--color-light-darker);
		--color-text: var(--color-dark);
		--color-text-muted: var(--color-dark-lighter);
		--color-accent: color-mix(in oklch, var(--color-dark), #fff 60%);

		--support-message-bg: var(--color-dark-darker);
		--support-message-text: var(--color-light-lighter);

		--space-md: 1rem;
		--space-lg: 1.5rem;
		--space-xl: 2rem;
		--space-xxl: 3rem;
		--line-tight: 1.2;
		--line-base: 1.5;
		--line-loose: 1.75;
		--font-sans: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell,
			Noto Sans, sans-serif;
		--font-mono: ui-monospace, "SFMono-Regular", "SF Mono", Menlo, Monaco,
			Consolas, monospace;
		--ts-xxs: clamp(0.75rem, -4cqw + 0.35rem, 0.9rem);
		--ts-xs: clamp(0.81rem, -3cqw + 0.35rem, 1.035rem);
		--ts-sm: clamp(0.9113rem, -1.5cqw + 0.35rem, 1.1644rem);
		--ts-base: clamp(1.0125rem, 0cqw + 0.35rem, 1.2938rem);
		--ts-md: clamp(1.1391rem, 1.5cqw + 0.35rem, .........完整代码请登录后点击上方下载按钮下载查看

网友评论0