Skip to main content
CSS-Tricks
  • Articles
  • Alamanac
  • Guides
  • Videos
  • Books
  • Newsletter
Search

Articles Tagged
clip-path

40 Articles
{
,

}
Direct link to the article CSS Grid and Custom Shapes, Part 3
clip-path css shapes grid hover images

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 clipping and masking to create fancy layouts for image …

Avatar of Temani Afif
Temani Afif on Nov 11, 2022
Direct link to the article Fancy Image Decorations: Outlines and Complex Animations
clip-path gradients hover mask outline transition

Fancy Image Decorations: Outlines and Complex Animations

We’ve spent the last two articles in this three-part series playing with gradients to make really neat image decorations using nothing but the <img> element. In this third and final piece, we are going to explore more techniques using the …

Avatar of Temani Afif
Temani Afif on Oct 28, 2022 (Updated on Jun 19, 2023)
Direct link to the article Fancy Image Decorations: Masks and Advanced Hover Effects
clip-path gradients hover linear-gradient mask radial-gradient

Fancy Image Decorations: Masks and Advanced Hover Effects

Welcome to Part 2 of this three-part series! We are still decorating images without any extra elements and pseudo-elements. I hope you already took the time to digest Part 1 because we will continue working with a lot of gradients …

Avatar of Temani Afif
Temani Afif on Oct 21, 2022 (Updated on Oct 28, 2022)
Direct link to the article Fancy Image Decorations: Single Element Magic
clip-path conic gradients hover images mask multiple backgrounds

Fancy Image Decorations: Single Element Magic

As the title says, we are going to decorate images! There’s a bunch of other articles out there that talk about this, but what we’re covering here is quite a bit different because it’s more of a challenge. The challenge? …

Avatar of Temani Afif
Temani Afif on Oct 14, 2022 (Updated on Oct 28, 2022)
Direct link to the article CSS Grid and Custom Shapes, Part 2
clip-path css shapes grid hover mask

CSS Grid and Custom Shapes, Part 2

Alright, so the last time we checked in, we were using CSS Grid and combining them with CSS clip-path and mask techniques to create grids with fancy shapes.

Here’s just one of the fantastic grids we made together:…

Avatar of Temani Afif
Temani Afif on Aug 22, 2022 (Updated on Nov 11, 2022)
Direct link to the article CSS Grid and Custom Shapes, Part 1
clip-path css shapes grid implicit grid mask

CSS Grid and Custom Shapes, Part 1

In a previous article, I looked at CSS Grid’s ability to create complex layouts using its auto-placement powers. I took that one step further in another article that added a zooming hover effect to images in a grid layout…

Avatar of Temani Afif
Temani Afif on Aug 15, 2022 (Updated on Nov 11, 2022)
Direct link to the article Single Element Loaders: Going 3D!
3d clip-path gradients loader mask

Single Element Loaders: Going 3D!

For this fourth and final article of our little series on single-element loaders, we are going to explore 3D patterns. When creating a 3D element, it’s hard to imagine that just one HTML element is enough to simulate something like all six faces of a cube. But  maybe we can get away …

Avatar of Temani Afif
Temani Afif on Jul 1, 2022 (Updated on Aug 27, 2023)
Direct link to the article Tricks to Cut Corners Using CSS Mask and Clip-Path Properties
clip-path css shapes gradients mask

Tricks to Cut Corners Using CSS Mask and Clip-Path Properties

We recently covered creating fancy borders with CSS mask properties, and now we are going to cut the corners with CSS mask and clip-path! A lot of techniques exist to cut different shapes from the corners of any element. …

Avatar of Temani Afif
Temani Afif on Mar 30, 2022 (Updated on Aug 11, 2022)
Direct link to the article CSS-ing Candy Ghost Buttons
background-clip border-image buttons clip-path ghost buttons gradients mask mask-clip mask-composite mix-blend-mode

CSS-ing Candy Ghost Buttons

Recently, while looking for some ideas on what to code as I have zero artistic sense so the only thing I can do is find pretty things that other people have come up with and remake them with clean and …

Avatar of Ana Tudor
Ana Tudor on Oct 31, 2021
Direct link to the article Exploring the CSS Paint API: Polygon Border
canvas clip-path css paint api houdini

Exploring the CSS Paint API: Polygon Border

Nowadays, creating complex shapes is an easy task using clip-path, but adding a border to the shapes is always a pain. There is no robust CSS solution and we always need to produce specific “hacky” code for each particular …

Avatar of Temani Afif
Temani Afif on Sep 20, 2021 (Updated on Oct 22, 2021)
Direct link to the article The Story Behind TryShape, a Showcase for the CSS clip-path property
clip-path css shapes

The Story Behind TryShape, a Showcase for the CSS clip-path property

I love shapes, especially colorful ones! Shapes on websites are in the same category of helpfulness as background colors, images, banners, section separators, artwork, and many more: they can help us understand context and inform our actions through affordances.

A …

Avatar of Tapas Adhikary
Tapas Adhikary on Sep 8, 2021
  • 1
  • 2
  • 3
  • ...
  • 4
  • Older

CSS-Tricks is powered by DigitalOcean.

Keep up to date on web dev

with our hand-crafted newsletter

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