CSS by T. Afif :verified:

A lot of ๐—–๐—ฆ๐—ฆ stuff by ๐—ง๐—ฒ๐—บ๐—ฎ๐—ป๐—ถ ๐—”๐—ณ๐—ถ๐—ณ

๐Ÿ’ก css-tip.com
๐Ÿงฉ css-shape.com
๐Ÿ’ซ css-loaders.com
๐Ÿ“ css-articles.com
โš™๏ธ css-generators.com
๐Ÿ† css-challenges.com
๐ŸŽจ css-pattern.com
โœจ css-only.art
๐ŸŽฎ css-games.com
โ“ css-quizzes.com

I verified myself because I know I am a real person. You can trust me, I know who I am.

CSS by T. Afif :verified: boosted:
Inautiloinautilo
2025-06-03


How to correctly use if() in CSS ยท What can be confusing at first is easy to fix ilo.im/164bzl

_____

CSS by T. Afif :verified: boosted:
Inautiloinautilo
2025-06-03


SVG to CSS Shape Converter ยท A web tool to transform an SVG shape into a CSS shape ilo.im/1642ey

_____

CSS by T. Afif :verified:css@front-end.social
2025-06-02

@Meyerweb the same apply to the other cases btw. "entry entry" is equivalent to "entry 0% entry 100%" which means when the element "start to enter the view" and when the element "completely entered the view".

you last example "entry 2em exit 2em" is close to "entry 0% exit 0%" which means "when the element start to enter the view" and "when the element start to exit the view". But with an offset of +2em

CSS by T. Afif :verified: boosted:
2025-06-02

#SVG to #CSS Shape Converter: "Shape master Temani Afif has gone all-in on the newly-released shape() function which recently rolled out in both Chromium browsers and Safari. That includes a brand-new generator that converts path() shapes in shape() commands instead." css-tricks.com/svg-to-css-shap

CSS by T. Afif :verified:css@front-end.social
2025-06-02

@Meyerweb does it help if you know that "entry exit" is the same as "entry 0% exit 100%" ?

> In the case of <timeline-range-name> values that do not include a <length-percentage>, the percentage defaults to 0% if it is an animation-range-start value, and 100% if it is an animation-range-end value.

maybe in the last example you are expecting the behavior of "entry 2em exit calc(100% - 2em)" ?

CSS by T. Afif :verified:css@front-end.social
2025-06-02

๐Ÿ’ก CSS Tip!

Excited about the new if() function? Learn how to correctly use it before facing a lot of issues (and headaches).

css-tip.com/inline-if/

The code below looks straightforward, but there is a hidden gotcha! ๐Ÿคจ

#CSS #HTML

The following CSS code:
.box {
  --n: 6; 
  --f: calc(var(--n)/2); 
  background: if(style(--f: 3): red; else: green); 
}
CSS by T. Afif :verified:css@front-end.social
2025-05-30

๐Ÿ“ New CSS Article!

The fun continues using shape()!

For this second part, we are drawing more CSS shapes while exploring the arc command. It's a very tricky command if you don't fully understand it.

css-tricks.com/better-css-shap

#CSS #HTML

CSS by T. Afif :verified: boosted:
CSS-Trickscsstricks
2025-05-30

The shape() function's arc command is a bit of a head scratcher, but @css breaks it down nicely and demonstrates how to bend it to your will.

css-tricks.com/better-css-shap

CSS by T. Afif :verified: boosted:
CSS by T. Afif :verified:css@front-end.social
2025-05-28

shape() + Anchor Positioning + some magic ๐Ÿช„

Demo: codepen.io/t_afif/full/PwqwOYz via :codepen: @codepen

A CSS-only fancy effect for this week #CodePenChallenge

#CSS #HTML

CSS by T. Afif :verified:css@front-end.social
2025-05-27

shape() + Anchor Positioning + some magic ๐Ÿช„

Demo: codepen.io/t_afif/full/PwqwOYz via :codepen: @codepen

A CSS-only fancy effect for this week #CodePenChallenge

#CSS #HTML

CSS by T. Afif :verified: boosted:
CSS by T. Afif :verified:css@front-end.social
2025-05-24

๐Ÿ“ New CSS Article!

It's me again exploring the new shape() function! โญ

This time, I wrote a series of articles to help you understand this new and powerful tool and the first part is live ๐Ÿ‘‡

css-tricks.com/better-css-shap

#CSS #HTML

CSS by T. Afif :verified:css@front-end.social
2025-05-23

๐Ÿ“ New CSS Article!

It's me again exploring the new shape() function! โญ

This time, I wrote a series of articles to help you understand this new and powerful tool and the first part is live ๐Ÿ‘‡

css-tricks.com/better-css-shap

#CSS #HTML

CSS by T. Afif :verified: boosted:
CSS-Trickscsstricks
2025-05-23

Ready to get your hands dirty with the shape() function? @css has a bunch of examples and exercises, starting with lines and arcs, to help you master this new feature.

css-tricks.com/better-css-shap

CSS by T. Afif :verified: boosted:
CSS by T. Afif :verified:css@front-end.social
2025-05-23

๐Ÿ’กCSS Tip!

Give a nice visual touch to your broken images. Get rid of the default browser rendering and add your own custom message using CSS.

css-tip.com/broken-image/

#CSS #HTML

CSS by T. Afif :verified:css@front-end.social
2025-05-22

๐Ÿ’กCSS Tip!

Give a nice visual touch to your broken images. Get rid of the default browser rendering and add your own custom message using CSS.

css-tip.com/broken-image/

#CSS #HTML

CSS by T. Afif :verified: boosted:
CSS-Trickscsstricks
2025-05-21

I love using @css's new CSS path-to-shape converter to see shape() commands used in a bunch of different contexts.

css-tricks.com/svg-to-css-shap

CSS by T. Afif :verified:css@front-end.social
2025-05-21

Always better with some animation, right?

Demo: codepen.io/t_afif/full/azzeOVo via :codepen: @codepen

Keyframes? No, there is no keyframes in the demo ๐Ÿ˜‰

#CSS #HTML

CSS by T. Afif :verified: boosted:
CSS by T. Afif :verified:css@front-end.social
2025-05-21

๐Ÿ’ก CSS Tip!

Create an arc shape with rounded edges using shape() and arc commands. Another shape made easy using shape() (I know, it's a lot of "shape" in the post ๐Ÿ˜…)

css-tip.com/arc-shape-rounded/

And look at that if() statement ๐Ÿ‘€

#CSS #HTML

Overview of the CSS code from the provided linkArc shape with rounded edges
CSS by T. Afif :verified:css@front-end.social
2025-05-20

๐Ÿ’ก CSS Tip!

Create an arc shape with rounded edges using shape() and arc commands. Another shape made easy using shape() (I know, it's a lot of "shape" in the post ๐Ÿ˜…)

css-tip.com/arc-shape-rounded/

And look at that if() statement ๐Ÿ‘€

#CSS #HTML

Overview of the CSS code from the provided linkArc shape with rounded edges
CSS by T. Afif :verified: boosted:
CSS by T. Afif :verified:css@front-end.social
2025-05-20

๐Ÿ“ New CSS Article!

The fun continues with the new shape() function. Learn how I made those blob shapes and how you can easily animate them! ๐Ÿคฉ

frontendmasters.com/blog/creat

Shape generator: css-generators.com/blob/

#CSS #HTML

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst