
if you’re dynamically masking a scroll container with css, consider leaving room for the scrollbar instead of masking it too 🧑🍳 mask-repeat: no-repeat; mask-size: calc(100% - 10px) 100px;
D7460N
11.2K posts

@D7460N
UI/UX SME 25+ yrs design/engineering the wild wild web

if you’re dynamically masking a scroll container with css, consider leaving room for the scrollbar instead of masking it too 🧑🍳 mask-repeat: no-repeat; mask-size: calc(100% - 10px) 100px;

It's all about composition. <ScrollFadeTop /> = useAtTop + sticky + <Mask />

@jh3yy Demo request! This image strip, but in pure CSS: codepen.io/trusktr/pen/Po…


What about a straight line that bends when the circles get closer and stretches when they get farther. It's surely not possible using pure CSS, right? Right!? 👀 css-tip.com/bending-line/ Probably my new favorite demo, powered by all the cool new stuff. 🤩






💡 CSS Tip! Connecting two circles with a curved line using only CSS? Yes, it's possible! 🤩 css-tip.com/connected-circ… A demo powered by the future of CSS (border-shape, if(), anchor position, etc). Update your Chrome and play with it! Stay tuned for more complex connections 👀


I and @imCGQAQ are currently working on implementing the CSS `polygon() round` keyword in Chrome. This is one of my favorite CSS features! Thanks to @LeaVerou for bringing it to CSS. The CodePen link is coming soon.