UI Components์ถ์ฒ: CSS-Tricks์กฐํ์ 10
Playing With CodePen slideVars
By Geoff Graham2026๋
1์ 14์ผ
**Playing With CodePen slideVars**
Super cool new CodePen feature alert. You’ve probably seen a bunch of “interactive” demos that let you change values on the fly from a UI panel embedded directly in the demo. Jhey’s demos come immediately to mind, like this one: CodePen Embed Fallback That’s a tool called TweakPane doing the work. There’s another one called Knobs by Yair Even Or that Adam Argyle often uses: CodePen Embed Fallback I’ve often faked it with either the Checkbox Hack or a sprinkle of JavaScript when I’m demoing a very specific concept: CodePen Embed Fallback OK, enough examples because CodePen has a homegrown tool of its own called slideVars. All you have to do is import it and call it in the JavaScript panel: import { slideVars } from "@codepen/slidevars"; slideVars.init(); You can import it into a project off CodePen if you’re so inclined...
---
**[devsupporter ํด์ค]**
์ด ๊ธฐ์ฌ๋ CSS-Tricks์์ ์ ๊ณตํ๋ ์ต์ ๊ฐ๋ฐ ๋ํฅ์ ๋๋ค. ๊ด๋ จ ๋๊ตฌ๋ ๊ธฐ์ ์ ๋ํด ๋ ์์๋ณด์๋ ค๋ฉด ์๋ณธ ๋งํฌ๋ฅผ ์ฐธ๊ณ ํ์ธ์.
Super cool new CodePen feature alert. You’ve probably seen a bunch of “interactive” demos that let you change values on the fly from a UI panel embedded directly in the demo. Jhey’s demos come immediately to mind, like this one: CodePen Embed Fallback That’s a tool called TweakPane doing the work. There’s another one called Knobs by Yair Even Or that Adam Argyle often uses: CodePen Embed Fallback I’ve often faked it with either the Checkbox Hack or a sprinkle of JavaScript when I’m demoing a very specific concept: CodePen Embed Fallback OK, enough examples because CodePen has a homegrown tool of its own called slideVars. All you have to do is import it and call it in the JavaScript panel: import { slideVars } from "@codepen/slidevars"; slideVars.init(); You can import it into a project off CodePen if you’re so inclined...
---
**[devsupporter ํด์ค]**
์ด ๊ธฐ์ฌ๋ CSS-Tricks์์ ์ ๊ณตํ๋ ์ต์ ๊ฐ๋ฐ ๋ํฅ์ ๋๋ค. ๊ด๋ จ ๋๊ตฌ๋ ๊ธฐ์ ์ ๋ํด ๋ ์์๋ณด์๋ ค๋ฉด ์๋ณธ ๋งํฌ๋ฅผ ์ฐธ๊ณ ํ์ธ์.
