Home/Temani Afif
Author
TATemani Afif

Temani Afif

38 articles by Temani Afif.

Frontend — Making a Responsive Pyramidal Grid With Modern CSS

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.

TATemani AfifTemani Afif·February 12, 2026Frontend
Frontend — Responsive Hexagon Grid Using Modern CSS

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!

TATemani AfifTemani Afif·January 23, 2026Frontend
Frontend — A CSS-Only Star Rating Component and More! (Part 2)

A CSS-Only Star Rating Component and More! (Part 2)

In this second article of a two-part series, Temani Afif demonstrates an alternative approach to creating the star rating component from the first article using experimental scroll-driven animations rather than using the border-image property.

TATemani AfifTemani Afif·March 7, 2025Frontend
Frontend — Sliding 3D Image Frames In CSS — Smashing Magazine

Sliding 3D Image Frames In CSS — Smashing Magazine

Creating 3D effects in CSS isn’t an entirely new concept, but typical approaches use additional elements in the markup and pseudo-elements in the styles to pull it off. Temani Afif applies 3D effects and sliding transitions to a single `` using clever CSS techniques that demonstrate advanced, modern styling practices.

TATemani AfifTemani Afif·April 12, 2024Frontend
Frontend — Modern CSS Tooltips And Speech Bubbles (Part 2) — Smashing Magazine

Modern CSS Tooltips And Speech Bubbles (Part 2) — Smashing Magazine

In Part 1 of this series, Temani Afif explored different CSS techniques to create tooltip shapes. The main challenge was to rely on a single element and create optimized code that could easily be controlled using CSS variables to update the size, shape, and position of the tail. In this second part, you are going explore more shapes.

TATemani AfifTemani Afif·March 8, 2024Frontend
Frontend — Modern CSS Tooltips And Speech Bubbles (Part 1) — Smashing Magazine

Modern CSS Tooltips And Speech Bubbles (Part 1) — Smashing Magazine

Tooltips are a very common pattern used in CSS for years. There are a lot of ways to approach tooltips in CSS, though some evoke headaches with all the magic numbers they require. In this article, Temani Afif presents modern techniques to create tooltips with the smallest amount of markup and the greatest amount of flexibility.

TATemani AfifTemani Afif·March 1, 2024Frontend
Frontend — CSS Responsive Multi-Line Ribbon Shapes (Part 2) — Smashing Magazine

CSS Responsive Multi-Line Ribbon Shapes (Part 2) — Smashing Magazine

In Part 1 of the series, Temani Afif demonstrated how creating ribbon patterns in CSS has evolved with the availability of new CSS features. In this second installment of this brief two-part series, we look at two additional ribbon variations that introduce techniques for masking a repeated background gradient in CSS.

TATemani AfifTemani Afif·November 22, 2023Frontend
Frontend — CSS Responsive Multi-Line Ribbon Shapes (Part 1) — Smashing Magazine

CSS Responsive Multi-Line Ribbon Shapes (Part 1) — Smashing Magazine

Ribbons have been used to accent designs for many years now. But, the way we approach them in CSS has evolved with the introduction of newer features. In this article, Temani Afif combines background and gradient tricks to create ribbon shapes in CSS that are not only responsive but support multi-line text and are easily adjustable with a few CSS variables.

TATemani AfifTemani Afif·November 15, 2023Frontend
Frontend — Revealing Images With CSS Mask Animations — Smashing Magazine

Revealing Images With CSS Mask Animations — Smashing Magazine

Let’s play with images and experiment with CSS masks. The idea is fairly simple: take a single `` tag and harness the power of CSS to accomplish complex hover transitions. Through different demos, you will see how CSS masks combined with gradients allow us to create fancy effects — with efficient, reusable code.

TATemani AfifTemani Afif·September 15, 2023Frontend
Frontend — CSS Grid and Custom Shapes, Part 3

CSS Grid and Custom Shapes, Part 3

After Part 1 and Part 2, I am back with a third article to explore more fancy shapes. Like the previous articles, we are going to combine CSS Grid with

TATemani AfifTemani Afif·November 11, 2022Frontend
Frontend — Zooming Images in a Grid Layout

Zooming Images in a Grid Layout

Creating a grid of images is easy, thanks to CSS Grid. But making the grid do fancy things after the images have been placed can be tricky to pull off.

TATemani AfifTemani Afif·August 8, 2022Frontend