Skip to main content
CSS-Tricks
  • Articles
  • Guides
  • Almanac
  • Links
  • Picks
  • Shuffle
Search
Articles by

Temani Afif

CSS Loaders — CSS Shape — CSS Generators — CSS Tip — CSS Pattern — CSS Challenges

@ChallengesCss · support.temani-afif.com

Three rectangular shapes with jagged, non-creating edges. the first is blue, then orange, then green.
Direct link to the article Making Complex CSS Shapes Using shape()
clip-path CSS functions css shapes shapes

Making Complex CSS Shapes Using shape()

Creating rectangles, circles, and rounded rectangles is the basic of CSS. Creating more complex CSS shapes such as triangles, hexagons, stars, hearts, etc. is more challenging but still a simple task if we rely on modern features.
Apr 2, 2026 Updated on Apr 14, 2026
A stack of hexagon shapes arrange in a pyramid grid. Each shape is labeled 1 through 28.
Direct link to the article Making a Responsive Pyramidal Grid With Modern CSS
grid math functions shapes

Making a Responsive Pyramidal Grid With Modern CSS

This is the second part of a small two-part series. In this article, we will explore another type of grid: a pyramidal one. We are still working with hexagon shapes, but a different organization of the elements., while exploring other different shapes.
Feb 12, 2026
A grid of hexagon shapes of equal size that alternate between blue and red. Each shape is labelled by it's order in the grid.
Direct link to the article Responsive Hexagon Grid Using Modern CSS
CSS functions math shapes

Responsive Hexagon Grid Using Modern CSS

A while back, Temani tacked a repeating grid of hexagon shapes. Well, he's updated it with modern CSS features that result in fewer magic numbers. And it's impressive!
Jan 23, 2026
Direct link to the article Responsive List of Avatars Using Modern CSS (Part 2)
container-queries images list mask

Responsive List of Avatars Using Modern CSS (Part 2)

In this article, we follow up the work we did to create responsive rows of circular images in a previous article by arranging the images around a circle with a clean hover effect.
Dec 17, 2025
Two rows of circular avatar images. The images overlap with one another. Teach row has six images.
Direct link to the article Responsive List of Avatars Using Modern CSS (Part 1)
images mask

Responsive List of Avatars Using Modern CSS (Part 1)

A list of rounded images that slightly overlap each other is a classic web design pattern. The main idea is not complex, but the new thing is the responsive part. that dynamically adjusts the overlap between the images so they fit inside the container.
Dec 15, 2025 Updated on Dec 17, 2025
A series of six dits in a single row. Five are the same size and colored dark gray. The fifth item is scaled slightly smaller and colored gold.
Direct link to the article Sequential linear() Animation With N Elements
animation CSS functions

Sequential linear() Animation With N Elements

Let’s suppose you have N elements with the same animation that should animate sequentially. Modern CSS makes this easy and it works for any number of items!
Oct 15, 2025
Direct link to the article Better CSS Shapes Using shape() — Part 4: Close and Move
art clip-path CSS functions css shapes

Better CSS Shapes Using shape() — Part 4: Close and Move

The shape() function's close and move commands may not be ones you reach for often, but are incredibly useful for certain shapes.
Jul 7, 2025
Diagrammiong a rounded rectangular shape in three stages, first with sharp edges, then with points indicating where the curve control points are, then the completed shape.
Direct link to the article Better CSS Shapes Using shape() — Part 3: Curves
art clip-path CSS functions css shapes

Better CSS Shapes Using shape() — Part 3: Curves

This is the third article in a series about the CSS shape() function. We've covered drawing lines and arcs in previous articles and, this time, we look specifically at the curve command and how to use it for drawing complex shapes.
Jun 6, 2025 Updated on Jul 7, 2025
Three circular shapes in a single row, including a partial pie and two semi-circles, one with rounded edges.
Direct link to the article Better CSS Shapes Using shape() — Part 2: More on Arcs
art clip-path CSS functions css shapes

Better CSS Shapes Using shape() — Part 2: More on Arcs

This is the second part of a series that dives deep into the CSS shape() command, continuing with a more detailed look at the arc command.
May 30, 2025 Updated on Jul 7, 2025
  • 1
  • 2
  • 3
  • ...
  • 6
  • Older

CSS-Tricks is powered by DigitalOcean.

Keep up to date on web dev

with our hand-crafted newsletter

DigitalOcean
  • About DO
  • Cloudways
  • Legal stuff
  • Get free credit!
CSS-Tricks
  • Contact
  • Write for CSS-Tricks!
  • Advertise with us
Social
  • RSS Feeds
  • CodePen
  • Mastodon
  • Bluesky
Back to Top