in this example the pill's stretch and blur scale with how fast it travels.
Apple takes dynamic motion to the extreme with liquid glass. it's too much for my liking.
in this example the pill's stretch and blur scale with how fast it travels.
Apple takes dynamic motion to the extreme with liquid glass. it's too much for my liking.
using `::selection` CSS pseudo-element to set a custom highlight color based on your design system should be the standard for web interfaces.
using `::selection` CSS pseudo-element to set a custom highlight color based on your design system should be the standard for web interfaces.
using `::selection` CSS pseudo-element to set a custom highlight color based on your design system should be the standard for web interfaces.
using `::selection` CSS pseudo-element to set a custom highlight color based on your design system should be the standard for web interfaces.
using a spring will always feel more fluid and natural for interactions that aren't strictly mapped to the cursor.
using a spring will always feel more fluid and natural for interactions that aren't strictly mapped to the cursor.
using a spring will always feel more fluid and natural for interactions that aren't strictly mapped to the cursor.
using a spring will always feel more fluid and natural for interactions that aren't strictly mapped to the cursor.
normal table's columns have ragged left edges as digits swap between narrow ("1") and wide ("0", "8") glyphs.
where tabular stays perfectly flush ~
normal table's columns have ragged left edges as digits swap between narrow ("1") and wide ("0", "8") glyphs.
where tabular stays perfectly flush ~
you can enable this tnum OpenType feature using the CSS property `font-variant-numeric`.
.tabular-nums {
font-variant-numeric: tabular-nums;
}
you can enable this tnum OpenType feature using the CSS property `font-variant-numeric`.
.tabular-nums {
font-variant-numeric: tabular-nums;
}
normal table's columns have ragged left edges as digits swap between narrow ("1") and wide ("0", "8") glyphs.
where tabular stays perfectly flush ~
normal table's columns have ragged left edges as digits swap between narrow ("1") and wide ("0", "8") glyphs.
where tabular stays perfectly flush ~
you can enable this tnum OpenType feature using the CSS property `font-variant-numeric`.
.tabular-nums {
font-variant-numeric: tabular-nums;
}
you can enable this tnum OpenType feature using the CSS property `font-variant-numeric`.
.tabular-nums {
font-variant-numeric: tabular-nums;
}
this impl satisfies both groups:
– click the email address for the `mailto` link
– or click the icon to copy to clipboard
this impl satisfies both groups:
– click the email address for the `mailto` link
– or click the icon to copy to clipboard
this impl satisfies both groups:
– click the email address for the `mailto` link
– or click the icon to copy to clipboard
this impl satisfies both groups:
– click the email address for the `mailto` link
– or click the icon to copy to clipboard
but it's not the same for most web-based dropdown menus. it took me a while to implement this here.
Amazon, macOS, Windows all implement some version of this.
but it's not the same for most web-based dropdown menus. it took me a while to implement this here.
Amazon, macOS, Windows all implement some version of this.
but it's not the same for most web-based dropdown menus. it took me a while to implement this here.
Amazon, macOS, Windows all implement some version of this.
but it's not the same for most web-based dropdown menus. it took me a while to implement this here.
Amazon, macOS, Windows all implement some version of this.
tho this is a bit simpler version for my blogs ( you can see them here sorenblank.com/writing ).
you can try it from here: sorenblank.com/writing/scroll-tracking-table-of-contents
tho this is a bit simpler version for my blogs ( you can see them here sorenblank.com/writing ).
you can try it from here: sorenblank.com/writing/scroll-tracking-table-of-contents
this can be easily fixed using css `::before` pseudo element on each element:
::before {
content: "";
position: absolute;
inset: -10px 0; /* extends 10px vertically */
}
this can be easily fixed using css `::before` pseudo element on each element:
::before {
content: "";
position: absolute;
inset: -10px 0; /* extends 10px vertically */
}
`stroke-dashoffset` being used here to animate the offset effect. can be bit tricky.
@keyframe {
from { stroke-dashoffset: 0; }
to { stroke-dashoffset: ${-dashCycle}; }
}
`stroke-dashoffset` being used here to animate the offset effect. can be bit tricky.
@keyframe {
from { stroke-dashoffset: 0; }
to { stroke-dashoffset: ${-dashCycle}; }
}
i've been experimenting how i can use this effect in different ui components. it goes well with buttons i think.
looks pretty seamless when you are using it along some transform movements of the component.
i've been experimenting how i can use this effect in different ui components. it goes well with buttons i think.
looks pretty seamless when you are using it along some transform movements of the component.
this can be easily fixed using css `::before` pseudo element on each element:
::before {
content: "";
position: absolute;
inset: -10px 0; /* extends 10px vertically */
}
this can be easily fixed using css `::before` pseudo element on each element:
::before {
content: "";
position: absolute;
inset: -10px 0; /* extends 10px vertically */
}
tho this is a bit simpler version for my blogs ( you can see them here sorenblank.com/writing ).
you can try it from here: sorenblank.com/writing/scroll-tracking-table-of-contents
tho this is a bit simpler version for my blogs ( you can see them here sorenblank.com/writing ).
you can try it from here: sorenblank.com/writing/scroll-tracking-table-of-contents
- Added tiny ~30px base64 blurred inline <img> placeholders (instant load!)
- Moved videos from @nextjs /public to @Cloudflare CDN
- Served .webm with .mp4 fallback via <source>
- Added tiny ~30px base64 blurred inline <img> placeholders (instant load!)
- Moved videos from @nextjs /public to @Cloudflare CDN
- Served .webm with .mp4 fallback via <source>
i've been experimenting how i can use this effect in different ui components. it goes well with buttons i think.
looks pretty seamless when you are using it along some transform movements of the component.
i've been experimenting how i can use this effect in different ui components. it goes well with buttons i think.
looks pretty seamless when you are using it along some transform movements of the component.
`stroke-dashoffset` being used here to animate the offset effect. can be bit tricky.
@keyframe {
from { stroke-dashoffset: 0; }
to { stroke-dashoffset: ${-dashCycle}; }
}
`stroke-dashoffset` being used here to animate the offset effect. can be bit tricky.
@keyframe {
from { stroke-dashoffset: 0; }
to { stroke-dashoffset: ${-dashCycle}; }
}
for hover state im doing `:has(*:is(.sidebar-icon-trigger:hover`
made only using css. no js listener used. took me longer than i thought it would.
for hover state im doing `:has(*:is(.sidebar-icon-trigger:hover`
made only using css. no js listener used. took me longer than i thought it would.