←
CSS by T. Afif6,135 posts
CSS by T. Afif avatar

CSS by T. Afif

@ChallengesCss

💡 css-tip.com 🧩 css-shape.com 💫 css-loaders.com 📝 css-articles.com ⚙️ css-generators.com 🏆 css-challenges.com 🎨 css-pattern.com 🎨 css-only.art

◷ Joined April 2021▧ 1,554 Photos and videos
CSS by T. Afif avatar
CSS by T. Afif@ChallengesCss·Nov 17

If you don't want a static version, you can use CSS random() to generate a new shape on each page load! css-tip.com/zig-zag-divider/ Imagine having loops in CSS. The code below would be a lot easier to write!

Post attachment

⚙️ New CSS Generator! Another cool shape added to my collection: A random Zig-Zag Divider! css-generators.com/zig-zag-d… Adjust the setting and get the code in no time. It's also ready for border-shape.

0:40
CSS by T. Afif avatar
⟳ CSS by T. Afif retweeted
CSS by T. Afif@ChallengesCss·Nov 16

⚙️ New CSS Generator! Another cool shape added to my collection: A random Zig-Zag Divider! css-generators.com/zig-zag-d… Adjust the setting and get the code in no time. It's also ready for border-shape.

0:40
CSS by T. Afif avatar
⟳ CSS by T. Afif retweeted
CSS by T. Afif@ChallengesCss·Nov 11

📝 New CSS article! See the below graphs/connections? They are all made using pure CSS. They combine two features: anchor positioning & border-shape. I wrote 3 articles detailing all the tricks, and the last one is live: blog.master.dev/creating-dia…

Post attachment
Master.dev (Formerly Frontend Masters) avatar
⟳ CSS by T. Afif retweeted
Master.dev (Formerly Frontend Masters)@MasterDotDev·Nov 11

Creating Diagrams and Graphs Using Modern CSS The final part of the connectors series: dynamic connections that pick the closest sides, static connections that always leave from the same edge, and some bendy, zig-zag, and spring connectors, all built with anchor positioning, border-shape, shape( blog.master.dev/creating-dia…

CSS by T. Afif avatar
⟳ CSS by T. Afif retweeted
CSS by T. Afif@ChallengesCss·Nov 6

It looks like the solution is to use a spring connector. This one is robust; you cannot break it! 🦾 css-tip.com/spring-connector…

0:17

Bending and stretching a line is good, but let's try something more mechanical: a foldable Zig-Zag connector. css-tip.com/zig-zag-connecto… Be careful, it's not as robust as a stretchy line, so don't ... too late, it's broken now 😣 A CSS-only low-quality connector 🫠

0:10
CSS by T. Afif avatar
CSS by T. Afif@ChallengesCss·Nov 2

Maybe the connector below is more robust? Still not...

0:12

Bending and stretching a line is good, but let's try something more mechanical: a foldable Zig-Zag connector. css-tip.com/zig-zag-connecto… Be careful, it's not as robust as a stretchy line, so don't ... too late, it's broken now 😣 A CSS-only low-quality connector 🫠

0:10
CSS by T. Afif avatar
CSS by T. Afif@ChallengesCss·Nov 2

Bending and stretching a line is good, but let's try something more mechanical: a foldable Zig-Zag connector. css-tip.com/zig-zag-connecto… Be careful, it's not as robust as a stretchy line, so don't ... too late, it's broken now 😣 A CSS-only low-quality connector 🫠

0:10

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. 🤩

0:24
CSS by T. Afif avatar
CSS by T. Afif@ChallengesCss·Oct 30

📝 New CSS Article! Learn how I combined Anchor Positioning, border-shape, and other modern CSS features to create the connection below. blog.master.dev/two-circles-… That's the simplest example. Another article will cover more complex ones! The future of CSS is awesome. 🤩

0:15
CSS by T. Afif avatar
⟳ CSS by T. Afif retweeted
CSS by T. Afif@ChallengesCss·Oct 28

💡 CSS Tip! random() + shape() + confetti = fancy shape explosion 🎉 css-tip.com/shape-confetti/ A CSS-only fun (and useless) demo powered by modern features.

0:09
CSS by T. Afif avatar
⟳ CSS by T. Afif retweeted
CSS by T. Afif@ChallengesCss·Oct 19

More range sliders with fancy shapes? Let's go! This time with a tooltip showing the value. curve, wave, zig-zag, arc ... Which one do you prefer? css-tip.com/shaped-range-sli… 0% JavaScript and 100% CSS magic (border-shape, shape(), scroll-driven animations, and more!)

0:49

Who said range sliders need to be straight and boring?! Hey CSS, distort the line! 〰️ css-tip.com/wiggly-range-sli… Another funny demo powered by border-shape, scroll-driven animations, and more The HTML code? Only an input element (no extra code is needed)

0:14
CSS by T. Afif avatar
CSS by T. Afif@ChallengesCss·Oct 7

💡 CSS Tip! Another cool shape that works well with random(): wavy dividers! css-tip.com/random-wavy-shap… Each visitor gets their own wavy shape for a unique experience.

0:07

💡CSS Tip! Creating CSS Shapes is one of my favorite tasks, and now I can do something even better: Random CSS Shapes! Let's start with Blobs. css-tip.com/random-blob/ You never see the same shape twice. A unique shape for a unique experience! 👀

0:20