daniel petho's banner
daniel petho's profile picture

daniel petho

@nonzeroexitcode7,610 subscribers

design engineer @krea_ai

Shorts

a well-known iOS Safari quirk is that inputs with a font-size <16px trigger an auto-zoom on focus using 16px is probably the best solution, but it can feel a bit heavy in tight UIs a clever workaround is to keep the font-size at 16px and scale the input down with CSS!

a well-known iOS Safari quirk is that inputs with a font-size <16px trigger an auto-zoom on focus using 16px is probably the best solution, but it can feel a bit heavy in tight UIs a clever workaround is to keep the font-size at 16px and scale the input down with CSS!

149,669 次观看

you don't need threejs for this effect just apply `perspective` to the container and animate each image with `translate3d(...)` over time, where depth is something like `z = z0 + speed * dt` and the rest is handled by the browser easy to map opacity or scroll to speed too

you don't need threejs for this effect just apply `perspective` to the container and animate each image with `translate3d(...)` over time, where depth is something like `z = z0 + speed * dt` and the rest is handled by the browser easy to map opacity or scroll to speed too

115,745 次观看

added some quality-of-life improvements to the cmyk emulator based on all the feedback: — more pre-filter settings, incl. better blur — better antialiasing, so (hopefully) no more artifacts — .mp4 record, on mobile too! thanks y'all!!

added some quality-of-life improvements to the cmyk emulator based on all the feedback: — more pre-filter settings, incl. better blur — better antialiasing, so (hopefully) no more artifacts — .mp4 record, on mobile too! thanks y'all!!

150,428 次观看

border-radius can actually take up to eight values, like: `10% 5% 5% 10% / 5% 10% 10% 5%` that lets you create all kinds of organic shapes in pure css! add blur + some layering and you can make it into a fancy glowing loader

border-radius can actually take up to eight values, like: `10% 5% 5% 10% / 5% 10% 10% 5%` that lets you create all kinds of organic shapes in pure css! add blur + some layering and you can make it into a fancy glowing loader

44,373 次观看

just published a figma plugin for the cmyk halftone editor! originally made this as a separate website for a figma hackathon and it felt weird not having it as a plugin there too, so here it is link in the comments↴

just published a figma plugin for the cmyk halftone editor! originally made this as a separate website for a figma hackathon and it felt weird not having it as a plugin there too, so here it is link in the comments↴

57,122 次观看

tiny update————fancy components are now available through the official shadcn registry!

tiny update————fancy components are now available through the official shadcn registry!

80,275 次观看

added video support to the cmyk halftone emulator! — it's free & open-source, runs in your browser — tons of controls — can record the result into webm or just save the image

added video support to the cmyk halftone emulator! — it's free & open-source, runs in your browser — tons of controls — can record the result into webm or just save the image

59,752 次观看

animating weight... i love variable fonts

animating weight... i love variable fonts

89,233 次观看

marquee along an svg path

marquee along an svg path

57,457 次观看

circular carousel v3————keeping the original transform of the items next: keyboard navs, scroll and a11y

circular carousel v3————keeping the original transform of the items next: keyboard navs, scroll and a11y

42,377 次观看

in zoomable / canvas-like apps (like Krea Nodes) small controls get frustratingly hard to click when zoomed out adding an invisible hit area keeps them (a tiny bit) easier to use without changing visuals super easy with an `::after` pseudo element, `position:absolute` + sizing

in zoomable / canvas-like apps (like Krea Nodes) small controls get frustratingly hard to click when zoomed out adding an invisible hit area keeps them (a tiny bit) easier to use without changing visuals super easy with an `::after` pseudo element, `position:absolute` + sizing

15,394 次观看

cube w/ 3d css transform + a bit of motion for the eased drag

cube w/ 3d css transform + a bit of motion for the eased drag

36,771 次观看

circular carousel v5————added keyboard navs, wheel/touchpad control + a11y will finish the docs and publish it soon.

circular carousel v5————added keyboard navs, wheel/touchpad control + a11y will finish the docs and publish it soon.

25,156 次观看

circular carousel v6————added proper css mapping based on angle (here blur + opacity) + experiments with css 3d transforms

circular carousel v6————added proper css mapping based on angle (here blur + opacity) + experiments with css 3d transforms

22,922 次观看

highlight text w/ scroll trigger

Sensitive content

highlight text w/ scroll trigger

17,578 次观看

alrighty! marquee along path component is live on fancy! w/ a bunch of customizations: - scroll based velocity - draggable - slowdown on hover - custom easing - mapping any CSS prop from start to end - docs on how it's built! source code & link in comments↴

alrighty! marquee along path component is live on fancy! w/ a bunch of customizations: - scroll based velocity - draggable - slowdown on hover - custom easing - mapping any CSS prop from start to end - docs on how it's built! source code & link in comments↴

15,762 次观看

new component dropped: changing variable font settings based on cursor proximity source code in comments↴

new component dropped: changing variable font settings based on cursor proximity source code in comments↴

18,138 次观看

Videos

没有更多内容可加载