div+css实现hdr图文卡片横向平铺翻页滚动效果代码
代码语言:html
所属分类:布局界面
代码描述:div+css实现hdr图文卡片横向平铺翻页滚动效果代码
代码标签: div css hdr 图文 卡片 横向 平铺 翻页 滚动
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<style>
@layer design-system, reset, base, utilities, components, layout, overrides;
@import "//repo.bfw.wiki/bfwrepo/css/open-props.1.7.15.css" layer(design-system.tokens);
@import "//repo.bfw.wiki/bfwrepo/css/hdr-palettes.css" layer(design-system.tokens-hdr);
@import "https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined&icon_names=arrow_back,arrow_forward,arrow_forward_ios&display=block" layer(design-system.symbols);
@layer reset {
*,
::before,
::after {
box-sizing: border-box;
}
:where(:not(dialog)) {
margin: 0;
}
:where(html) {
-webkit-text-size-adjust: none;
@media (prefers-reduced-motion: no-preference) {
scroll-behavior: smooth;
}
}
:where(body) {
min-block-size: 100svb;
-webkit-font-smoothing: antialiased;
}
}
@layer base {
html {
color-scheme: dark;
/* Adjust the chroma for all palettes */
--palette-chroma: 1;
/* Contrast function based on perceptual lightness (OKLCH) */
--threshold: 0.625;
--contrast-fn: min(max(((l - var(--threshold)) * -infinity), 0), 1);
/* Semantic tokens */
--ui-surface: var(--hdr-purple-15);
--ui-surface-container: var(--hdr-purple-14);
--ui-on-surface: oklch(from var(--ui-surface) var(--contrast-fn) 0 h);
--ui-primary: var(--hdr-orange-2);
--ui-spacing-none: 0;
--ui-spacing-xxs: var(--size-1);
--ui-spacing-xs: var(--size-2);
--ui-spacing-sm: var(--size-3);
--ui-spacing-md: var(--size-5);
--ui-spacing-lg: var(--size-7);
--ui-spacing-xl: var(--size-8);
--ui-spacing-xxl: var(--size-11);
--base-font: "Roboto";
--ui-label: var(--font-weight-5) var(--font-size-1) / var(--font-lineheight-0) var(--base-font), var(--font-system-ui);
--ui-body: var(--font-weight-4) var(--font-size-2) / var(--font-lineheight-3) var(--base-font), var(--font-system-ui);
--ui-title: var(--font-weight-5) var(--font-size-4) / var(--font-lineheight-1) var(--base-font), var(--font-system-ui);
--ui-icon-font-family: 'Material Symbols Outlined';
--icon-font-small: var(-.........完整代码请登录后点击上方下载按钮下载查看
网友评论0