RangeSlider实现垂直取值滑动步进器代码
代码语言:html
所属分类:布局界面
代码描述:RangeSlider实现垂直取值滑动步进器代码
代码标签: RangeSlider 垂直 取值 滑动 步进器 代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel='stylesheet' href='https://fonts.bunny.net/css?family=amaranth:400,400i,700,700i|asap-condensed:200,300i,400,400i,600,600i,700,700i,900,900i|asap:200,300i,400,400i,600,600i,700,700i,900,900i|kode-mono:400,500,600,700|fredoka:400,500'> <style> :root { /* vars */ color-scheme: light!important; --shadow-color: var(--fg); } button[popovertarget] { anchor-name: --anchor-contrast; border-radius: 100vw; background: white; border: none; outline: none; box-shadow: inset 0 0 0 1px #ddd, 0 1px 1px -1px #aaa, 0 0 0 4px #e8e8e8, 0 0 50px 10px hsl( from var(--bg) h s 100% ), 0 0 70px 50px hsl( from var(--bg) h s 98% ), 0 0 100px 75px hsl( from var(--bg) h s 96% ); padding: 0.66em 1.33em; margin: clamp( 3em, 30vh, 30em ) 0 auto; transition: box-shadow 0.15s var(--cubic-out); & svg { height: 30px; scale: -1 1; transition: translate 0.15s var(--cubic-out); transform: translate3d(0,0,0.01px); } &:has(+ :popover-open) { background: hsl( from var(--bg) h s 94% ); box-shadow: inset 0 0 0 1px #ddd, inset 0 1px 2px -1px hsl( from var(--bg) h s 50% / 50% ), 0 0 0 4px #e8e8e8, 0 0 50px 10px hsl( from var(--bg) h s 100% ), 0 0 70px 50px hsl( from var(--bg) h s 98% ), 0 0 100px 75px hsl( from var(--bg) h s 96% ); & svg { translate: 0 1px; } } } #contrast-popover { transition: opacity 0.2s, translate 0.2s, overlay 0.2s allow-discrete, display 0.2s allow-discrete; transition-timing-function: var(--cubic-out); opacity: 0; translate: 10px -60%; @supports (position-anchor: --anchor-contrast) { position-a.........完整代码请登录后点击上方下载按钮下载查看
网友评论0