Interaction
弹性滑块
带有弹性拇指和拉伸轨道填充的拖拽范围滑块。
作者:mcpSkills
框架
nextjs
UI 库
shadcntailwind
难度advanced
英文提示词
Create a custom range slider with an elastic feel. The thumb should stretch slightly in the drag direction, and the track fill should animate smoothly with a slight overshoot. Use CSS transitions and transform on a styled input range or a custom div-based slider. Use Tailwind CSS. Display the current value above the thumb. Place on a dark background.
中文提示词
创建一个带弹性感觉的自定义范围滑块。滑块拇指应向拖拽方向轻微拉伸,轨道填充应平滑动画并带轻微过冲。在样式化 input range 或自定义 div 滑块上使用 CSS transitions 和 transform。使用 Tailwind CSS。在拇指上方显示当前值。放置在深色背景上。

Overview
感觉有物理感和响应性的滑块。适合需要愉悦感的设置、价格计算器或筛选控件。
Features
- 弹性拇指拉伸
- 平滑轨道填充动画
- 轻微过冲
- 当前值显示
- 深色背景
- CSS 驱动过渡
Usage
适用于价格滑块、音量控制或任何触感重要的范围输入。
Customization
修改 prompt 以:
- 添加刻度标记和标签
- 拇指形状改为圆形/方形
- 轨道填充使用渐变
- 显示最小/最大标签