Front-End RoundupGathered from around the web

Blog

CSS Tip — Temani Afif

#css #design

Visit css-tip.com

Recent from CSS Tip — Temani Afif

Confetti Buttons using random()

Building on the previous effect to create confetti buttons. Full confetti or partial confetti? Pick your favorite! See the Pen Confetti Buttons by Temani Afif ( @t_afif ) on CodePen. See the Pen Confetti Button II by Temani Afif ( @t_afif )…

CSS Tip — Temani Afif

A Spring Connector Using Anchor Positioning and border-shape

After the low-quality Zig-Zag connector, here is a more robust one: a spring connector. Another fun demo powered by Anchor Positioning and border-shape Drag the circles and see how the shape behaves. Go wild with this one; it won't break!…

CSS Tip — Temani Afif

A Foldable Zig-Zag Connector Using Modern CSS

In a previous post, we created a fancy connector where a straight line bends (or stretches) based on the distance between the connected elements. This time, let's try a foldable zig-zag connector. Drag the circles, but be careful; the…

CSS Tip — Temani Afif

Confetti Shape Explosion using random()

Do you want a cool hover effect? Using random() and modern features, you can explode any border-only shape into confetti! See the Pen Confetti Shape explosion (hover to explode!) by Temani Afif ( @t_afif ) on CodePen. Want to apply this to…

CSS Tip — Temani Afif

Input Range Slider with Custom Shapes

Building on a previous idea, here is a more generic implementation of range sliders with custom shapes and tooltips. No JavaScript and a lot of cool CSS features ( border-shape, shape(), Scroll-Driven Animations, @property, etc.) Minimal…

CSS Tip — Temani Afif

Implementing children-count() using Modern CSS

We can get the number of siblings using sibling-count() but we cannot get the number of children yet. There is a proposal for a children-count() function, but until we get an official release, we can hack it using Scroll-Driven Animations…

CSS Tip — Temani Afif

Complex border-only Shapes with Gradient Coloration

You can combine border-shape and border-area to easily border-only shapes with gradient coloration easily. No more hacks or complex code, just 3 lines and you're done! See the Pen Complex border-only gradient shapes by Temani Afif ( @t_afif…

CSS Tip — Temani Afif