CSS Articles by Temani Afif A wide range of articles covering all CSS Topics. From the basic to the advanced ones, all the CSS secrets are here. 2026-02-12T00:00:00Z https://css-articles.com/ Temani Afif Making a Responsive Pyramidal Grid With Modern CSS 2026-02-12T00:00:00Z https://css-tricks.com/making-a-responsive-pyramidal-grid-with-modern-css/ Making a Responsive Pyramidal Grid With Modern CSS

Making a Responsive Pyramidal Grid With Modern CSS

Read the full article online

]]>
How to Create a CSS-only Elastic Text Effect 2026-02-11T00:00:00Z https://frontendmasters.com/blog/how-to-create-a-css-only-elastic-text-effect/ How to Create a CSS-only Elastic Text Effect

How to Create a CSS-only Elastic Text Effect

Read the full article online

]]>
Responsive Hexagon Grid Using Modern CSS 2026-01-23T00:00:00Z https://css-tricks.com/responsive-hexagon-grid-using-modern-css/ Responsive Hexagon Grid Using Modern CSS

Responsive Hexagon Grid Using Modern CSS

Read the full article online

]]>
Responsive List of Avatars Using Modern CSS (Part 2) 2025-12-18T00:00:00Z https://css-tricks.com/responsive-list-of-avatars-using-modern-css-part-2/ Responsive List of Avatars Using Modern CSS (Part 2)

Responsive List of Avatars Using Modern CSS (Part 2)

Read the full article online

]]>
Responsive List of Avatars Using Modern CSS (Part 1) 2025-12-15T00:00:00Z https://css-tricks.com/responsive-list-of-avatars-using-modern-css-part-1/ Responsive List of Avatars Using Modern CSS (Part 1)

Responsive List of Avatars Using Modern CSS (Part 1)

Read the full article online

]]>
Perfectly Pointed Tooltips: To The Corners 2025-11-10T00:00:00Z https://frontendmasters.com/blog/perfectly-pointed-tooltips-to-the-corners/ Perfectly Pointed Tooltips: To The Corners

Perfectly Pointed Tooltips: To The Corners

Read the full article online

]]>
Perfectly Pointed Tooltips: All Four Sides 2025-11-03T00:00:00Z https://frontendmasters.com/blog/perfectly-pointed-tooltips-all-four-sides/ Perfectly Pointed Tooltips: All Four Sides

Perfectly Pointed Tooltips: All Four Sides

Read the full article online

]]>
Perfectly Pointed Tooltips: A Foundation 2025-10-28T00:00:00Z https://frontendmasters.com/blog/perfectly-pointed-tooltips-a-foundation/ Perfectly Pointed Tooltips: A Foundation

Perfectly Pointed Tooltips: A Foundation

Read the full article online

]]>
Sequential linear() Animation With N Elements 2025-10-15T00:00:00Z https://css-tricks.com/sequential-linear-animation-with-n-elements/ Sequential linear() Animation With N Elements

Sequential linear() Animation With N Elements

Read the full article online

]]>
Infinite Marquee Animation using Modern CSS 2025-08-05T00:00:00Z https://frontendmasters.com/blog/infinite-marquee-animation-using-modern-css/ Infinite Marquee Animation using Modern CSS

Infinite Marquee Animation using Modern CSS

Read the full article online

]]>
Better CSS Shapes Using shape() — Part 4: Close and Move 2025-07-07T00:00:00Z https://css-tricks.com/better-css-shapes-using-shape-part-4-close-and-move/ Better CSS Shapes Using shape() — Part 4: Close and Move

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

Read the full article online

]]>
Drawing CSS Shapes using corner-shape 2025-06-19T00:00:00Z https://frontendmasters.com/blog/drawing-css-shapes-using-corner-shape/ Drawing CSS Shapes using corner-shape

Drawing CSS Shapes using corner-shape

Read the full article online

]]>
Better CSS Shapes Using shape() — Part 3: Curves 2025-06-06T00:00:00Z https://css-tricks.com/better-css-shapes-using-shape-part-3-curves/ Better CSS Shapes Using shape() — Part 3: Curves

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

Read the full article online

]]>
Better CSS Shapes Using shape() — Part 2: More on Arcs 2025-05-30T00:00:00Z https://css-tricks.com/better-css-shapes-using-shape-part-2-more-on-arcs/ Better CSS Shapes Using shape() — Part 2: More on Arcs

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

Read the full article online

]]>
Better CSS Shapes Using shape() — Part 1: Lines and Arcs 2025-05-23T00:00:00Z https://css-tricks.com/better-css-shapes-using-shape-part-1-lines-and-arcs/ Better CSS Shapes Using shape() — Part 1: Lines and Arcs

Better CSS Shapes Using shape() — Part 1: Lines and Arcs

Read the full article online

]]>
Creating Blob Shapes using clip-path: shape() 2025-05-19T00:00:00Z https://frontendmasters.com/blog/creating-blob-shapes-using-clip-path-shape/ Creating Blob Shapes using clip-path: shape()

Creating Blob Shapes using clip-path: shape()

Read the full article online

]]>
Creating Flower Shapes using clip-path: shape() 2025-05-13T00:00:00Z https://frontendmasters.com/blog/creating-flower-shapes-using-clip-path-shape/ Creating Flower Shapes using clip-path: shape()

Creating Flower Shapes using clip-path: shape()

Read the full article online

]]>
Custom progress element using the attr() function 2025-04-09T00:00:00Z https://frontendmasters.com/blog/custom-progress-element-using-the-attr-function/ Custom progress element using the attr() function

Custom progress element using the attr() function

Read the full article online

]]>
A CSS-Only Star Rating Component and More! (Part 2) 2025-03-07T00:00:00Z https://css-tricks.com/a-css-only-star-rating-component-and-more-part-2/ A CSS-Only Star Rating Component and More! (Part 2)

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

Read the full article online

]]>
A CSS-Only Star Rating Component and More! (Part 1) 2025-02-28T00:00:00Z https://css-tricks.com/a-css-only-star-rating-component-and-more-part-1/ A CSS-Only Star Rating Component and More! (Part 1)

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

Read the full article online

]]>
How to Create Wavy Boxes Using CSS 2025-02-06T00:00:00Z https://verpex.com/blog/website-tips/how-to-create-wavy-boxes-using-css How to Create Wavy Boxes Using CSS

How to Create Wavy Boxes Using CSS

Read the full article online

]]>
Full-Bleed Layout with Modern CSS 2025-01-27T00:00:00Z https://frontendmasters.com/blog/full-bleed-layout-with-modern-css/ Full-Bleed Layout with Modern CSS

Full-Bleed Layout with Modern CSS

Read the full article online

]]>
Fancy Menu Navigation Using Anchor Positioning 2025-01-17T00:00:00Z https://css-tricks.com/fancy-menu-navigation-using-anchor-positioning/ Fancy Menu Navigation Using Anchor Positioning

Fancy Menu Navigation Using Anchor Positioning

Read the full article online

]]>
How to Create a Zig-Zag Box Using CSS 2024-12-18T00:00:00Z https://verpex.com/blog/website-tips/how-to-create-a-zig-zag-box-using-css How to Create a Zig-Zag Box Using CSS

How to Create a Zig-Zag Box Using CSS

Read the full article online

]]>
How to Create Zig-Zag CSS Loaders Using One Element 2024-11-20T00:00:00Z https://www.freecodecamp.org/news/zig-zag-css-loaders/ How to Create Zig-Zag CSS Loaders Using One Element

How to Create Zig-Zag CSS Loaders Using One Element

Read the full article online

]]>
Custom Progress Element Using Anchor Positioning & Scroll-Driven Animations 2024-11-13T00:00:00Z https://frontendmasters.com/blog/custom-progress-element-using-anchor-positioning-scroll-driven-animations/ Custom Progress Element Using Anchor Positioning & Scroll-Driven Animations

Custom Progress Element Using Anchor Positioning & Scroll-Driven Animations

Read the full article online

]]>
How to Create Filling CSS Loaders Using One Element 2024-10-23T00:00:00Z https://www.freecodecamp.org/news/filling-css-loaders/ How to Create Filling CSS Loaders Using One Element

How to Create Filling CSS Loaders Using One Element

Read the full article online

]]>
How to Create Curved-Edge and Rounded-Edge Shapes Using CSS 2024-10-14T00:00:00Z https://www.freecodecamp.org/news/rounded-and-curved-edge-css-shapes/ How to Create Curved and Rounded Edge Shapes Using CSS

How to Create Curved-Edge and Rounded-Edge Shapes Using CSS

Read the full article online

]]>
CSS Tricks That Use Only One Gradient 2024-10-11T00:00:00Z https://css-tricks.com/css-tricks-that-use-only-one-gradient/ CSS Tricks That Use Only One Gradient

CSS Tricks That Use Only One Gradient

Read the full article online

]]>
How to create Shapes with Inner Curves using CSS Mask 2024-09-25T00:00:00Z https://verpex.com/blog/website-tips/how-to-create-shapes-with-inner-curves-using-css-mask How to create Shapes with Inner Curves using CSS Mask

How to create Shapes with Inner Curves using CSS Mask

Read the full article online

]]>
Custom Range Slider Using Anchor Positioning & Scroll-Driven Animations 2024-08-21T00:00:00Z https://frontendmasters.com/blog/custom-range-slider-using-anchor-positioning-scroll-driven-animations/ Custom Range Slider Using Anchor Positioning & Scroll-Driven Animations

Custom Range Slider Using Anchor Positioning & Scroll-Driven Animations

Read the full article online

]]>
How to Get the Width/Height of Any Element in Only CSS 2024-07-25T00:00:00Z https://frontendmasters.com/blog/how-to-get-the-width-height-of-any-element-in-only-css/ How to Get the Width/Height of Any Element in Only CSS

How to Get the Width/Height of Any Element in Only CSS

Read the full article online

]]>
How Keyboard Navigation Works in a CSS Game 2024-07-08T00:00:00Z https://frontendmasters.com/blog/how-keyboard-navigation-works-in-a-css-game/ How Keyboard Navigation Works in a CSS Game

How Keyboard Navigation Works in a CSS Game

Read the full article online

]]>
How To Create Cut-Out Shapes using The clip-path property 2024-06-18T00:00:00Z https://verpex.com/blog/website-tips/how-to-create-cut-out-shapes-using-the-clip-path-property How To Create Cut-Out Shapes using The clip-path property

How To Create Cut-Out Shapes using The clip-path property

Read the full article online

]]>
The Modern Guide For Making CSS Shapes 2024-05-10T00:00:00Z https://www.smashingmagazine.com/2024/05/modern-guide-making-css-shapes/ The Modern Guide For Making CSS Shapes

The Modern Guide For Making CSS Shapes

Read the full article online

]]>
css-shape.com: The Ultimate Collection of CSS-only Shapes 2024-04-22T00:00:00Z https://dev.to/afif/css-shapecom-the-ultimate-collection-of-css-only-shapes-52p5 CSS Shapes

css-shape.com: The Ultimate Collection of CSS-only Shapes

Read the full article online

]]>
Sliding 3D Image Frames In CSS 2024-04-12T00:00:00Z https://www.smashingmagazine.com/2024/04/sliding-3d-image-frames-css/ Sliding 3D Image Frames In CSS

Sliding 3D Image Frames In CSS

Read the full article online

]]>
CSS Tricks To Master The clip-path Property 2024-04-11T00:00:00Z https://verpex.com/blog/website-tips/css-tricks-to-master-the-clip-path-property CSS Tricks To Master The clip-path Property

CSS Tricks To Master The clip-path Property

Read the full article online

]]>
Creating Wavy Circles with Fancy Animations in CSS 2024-03-15T00:00:00Z https://frontendmasters.com/blog/creating-wavy-circles-with-fancy-animations/ Creating Wavy Circles with Fancy Animations in CSS

Creating Wavy Circles with Fancy Animations in CSS

Read the full article online

]]>
Modern CSS Tooltips And Speech Bubbles (Part 2) 2024-03-08T00:00:00Z https://www.smashingmagazine.com/2024/03/modern-css-tooltips-speech-bubbles-part2/ Modern CSS Tooltips And Speech Bubbles

Modern CSS Tooltips And Speech Bubbles (Part 2)

Read the full article online

]]>
Do you need a Tooltip or a Speech Bubble? I have created 100 using CSS 😲 2024-03-04T00:00:00Z https://dev.to/afif/do-you-need-a-tooltip-or-a-speech-bubble-i-have-created-100-using-css-2l17 CSS Tooltip

Do you need a Tooltip or a Speech Bubble? I have created 100 using CSS 😲

Read the full article online

]]>
Modern CSS Tooltips And Speech Bubbles (Part 1) 2024-03-01T00:00:00Z https://www.smashingmagazine.com/2024/03/modern-css-tooltips-speech-bubbles-part1/ Modern CSS Tooltips And Speech Bubbles

Modern CSS Tooltips And Speech Bubbles (Part 1)

Read the full article online

]]>
Creating Flower Shapes using CSS Mask and Trigonometric Functions 2024-02-29T00:00:00Z https://frontendmasters.com/blog/creating-flower-shapes-using-css-mask-trigonometric-functions Creating Flower Shapes using CSS Mask & Trigonometric Functions

Creating Flower Shapes using CSS Mask & Trigonometric Functions

Read the full article online

]]>
CSS Shapes: The Triangle 2024-02-09T00:00:00Z https://verpex.com/blog/website-tips/css-shapes-the-triangle CSS Shapes: The Triangle

CSS Shapes: The Triangle

Read the full article online

]]>
The Complex But Awesome CSS border-image Property 2024-01-16T00:00:00Z https://www.smashingmagazine.com/2024/01/css-border-image-property/ The Complex But Awesome CSS border-image Property

The Complex But Awesome CSS border-image Property

Read the full article online

]]>
CSS Tricks to add 3D Effects to your Text 2024-01-16T00:00:00Z https://verpex.com/blog/website-tips/css-tricks-to-add-3d-effects-to-your-text CSS Tricks to add 3D Effects to your Text

CSS Tricks to add 3D Effects to your Text

Read the full article online

]]>
CSS Responsive Multi-Line Ribbon Shapes (Part 2) 2023-11-22T00:00:00Z https://www.smashingmagazine.com/2023/11/css-responsive-multi-line-ribbon-shapes-part2/ CSS Responsive Multi-Line Ribbon Shapes

CSS Responsive Multi-Line Ribbon Shapes (Part 2)

Read the full article online

]]>
CSS Responsive Multi-Line Ribbon Shapes (Part 1) 2023-11-15T00:00:00Z https://www.smashingmagazine.com/2023/11/css-responsive-multi-line-ribbon-shapes-part1/ CSS Responsive Multi-Line Ribbon Shapes

CSS Responsive Multi-Line Ribbon Shapes (Part 1)

Read the full article online

]]>
I have made 100+ CSS-only Ribbon Shapes | The Perfect Collection 🎀 2023-11-13T00:00:00Z https://dev.to/afif/i-have-made-100-css-only-ribbon-shapes-the-perfect-collection-4374 I have made 100+ CSS-only Ribbon Shapes

I have made 100+ CSS-only Ribbon Shapes | The Perfect Collection 🎀

Read the full article online

]]>
How to create a CSS-only infinite scroll animation 2023-10-16T00:00:00Z https://verpex.com/blog/website-tips/how-to-create-a-css-only-infinite-scroll-animation How to create a CSS-only infinite scroll animation

How to create a CSS-only infinite scroll animation

Read the full article online

]]>
Re-Creating The Pop-Out Hover Effect With Modern CSS (Part 2) 2023-10-05T00:00:00Z https://www.smashingmagazine.com/2023/10/re-creating-pop-out-hover-effect-modern-css-part2/ Re-Creating The Pop-Out Hover Effect With Modern CSS (Part 2)

Re-Creating The Pop-Out Hover Effect With Modern CSS (Part 2)

Read the full article online

]]>
Re-Creating The Pop-Out Hover Effect With Modern CSS (Part 1) 2023-09-29T00:00:00Z https://www.smashingmagazine.com/2023/09/re-creating-pop-out-hover-effect-css-part1/ Re-Creating The Pop-Out Hover Effect With Modern CSS (Part 1)

Re-Creating The Pop-Out Hover Effect With Modern CSS (Part 1)

Read the full article online

]]>
How to Create CSS Ribbon Shapes with a Single Element 2023-09-28T00:00:00Z https://www.sitepoint.com/css-ribbons-single-element/ How to Create CSS Ribbon Shapes with a Single Element

How to Create CSS Ribbon Shapes with a Single Element

Read the full article online

]]>
CSS Shapes: The Ribbon 2023-09-18T00:00:00Z https://verpex.com/blog/website-tips/css-shapes-the-ribbon CSS Shapes: The Ribbon

CSS Shapes: The Ribbon

Read the full article online

]]>
Revealing Images With CSS Mask Animations 2023-09-15T00:00:00Z https://www.smashingmagazine.com/2023/09/revealing-images-css-mask-animations/ Revealing Images With CSS Mask Animations

Revealing Images With CSS Mask Animations

Read the full article online

]]>
css-loaders.com: The Biggest Collection of Loading Animations (more than 500 🤯) 2023-08-30T00:00:00Z https://dev.to/afif/css-loaderscom-the-biggest-collection-of-loading-animations-more-than-500--23jg CSS Loaders: 500+ single element loaders

css-loaders.com: The Biggest Collection of Loading Animations (more than 500 🤯)

Read the full article online

]]>
How To Define An Array Of Colors With CSS 2023-07-28T00:00:00Z https://www.smashingmagazine.com/2023/07/define-array-colors-css How To Define An Array Of Colors With CSS

How To Define An Array Of Colors With CSS

Read the full article online

]]>
CSS Effects on Images II 2023-07-22T00:00:00Z https://verpex.com/blog/website-tips/css-effects-on-images-ii CSS effects on images II

CSS effects on images II

Read the full article online

]]>
Shines, Perspective, And Rotations: Fancy CSS 3D Effects For Images 2023-07-07T00:00:00Z https://www.smashingmagazine.com/2023/07/shines-perspective-rotations-css-3d-effects-images/ Shines, Perspective, And Rotations: Fancy CSS 3D Effects For Images

Shines, Perspective, And Rotations: Fancy CSS 3D Effects For Images

Read the full article online

]]>
What's your Lucky CSS Pattern? Check It Now! 2023-06-20T00:00:00Z https://dev.to/afif/whats-your-lucky-css-pattern-check-it-now-1g18 What's your Lucky CSS Pattern? Check It Now!

One-click and you have the best CSS Pattern that matches your preference.

Read the full article online

]]>
How to Add a CSS Reveal Animation to Your Images 2023-06-15T00:00:00Z https://www.sitepoint.com/css-image-reveal-animation/ How to Add a CSS Reveal Animation to Your Images

In this article, we’ll explore some CSS tricks that allow us to create a hover animation for revealing our images.

Read the full article online

]]>
Modern Layouts using CSS Grid 2023-06-10T00:00:00Z https://verpex.com/blog/website-tips/modern-layouts-using-css-grid Modern Layouts using CSS Grid

In this article, we will use CSS Grid to build some common layouts. The goal is to combine modern CSS tricks to create such layouts with the smallest code possible. In the end, you will have a collection of CSS boilerplate that you can easily reuse in your projects.

Read the full article online

]]>
I created 100+ unique CSS patterns | The best collection 2023-05-23T00:00:00Z https://dev.to/afif/i-created-100-unique-css-patterns-the-best-collection-31cl I created 100+ unique CSS patterns | The best collection

After the CSS Loaders and the CSS Underline/Overlay animations, I am back with another big collection. This time it's about CSS Patterns.

Read the full article online

]]>
How to Create a Custom Range Slider Using CSS 2023-05-18T00:00:00Z https://www.sitepoint.com/css-custom-range-slider/ How to Create a Custom Range Slider Using CSS

In this article, I’ll show how to use modern CSS techniques to create an eye-catching, custom range slider with nothing but the native HTML input element.

Read the full article online

]]>
CSS Shapes: The Heart 2023-05-13T00:00:00Z https://verpex.com/blog/website-tips/css-shapes-the-heart CSS Shapes: The Heart

Create a heart shape using modern CSS tricks. You can even transform images into hearts

Read the full article online

]]>
CSS Shapes: Polygon & Starburst 2023-05-06T00:00:00Z https://verpex.com/blog/website-tips/css-shapes-polygon-starburst CSS Shapes: Polygon & Starburst

In this article, we are going to build CSS Shapes! We will use clip-path combined with some math to generate polygon and starburst shapes.

Read the full article online

]]>
A Text Reveal Animation using CSS 2023-04-22T00:00:00Z https://verpex.com/blog/website-tips/a-text-reveal-animation-using-css A Text Reveal Animation using CSS

In this article, we are going to build a simple but cool reveal animation that you can apply to your text. It will also work with multi-line of texts! All you have to do is to add a class and see the magic in play.

Read the full article online

]]>
CSS Tip: learn CSS the easy way! 2023-04-14T00:00:00Z https://dev.to/this-is-learning/css-tip-learn-css-the-easy-way-im4 CSS Tip: learn CSS the easy way!

Read the full article online

]]>
How to build a CSS-only accordion 2023-03-25T00:00:00Z https://verpex.com/blog/website-tips/how-to-build-a-css-only-accordion How to build a CSS-only accordion

In this article, we will create an accordion using CSS. Another common component that we create using minimal code. Most of the tricks rely on input hacks but we will do something different here.

Read the full article online

]]>
How to create Breadcrumb Navigation with CSS 2023-02-20T00:00:00Z https://verpex.com/blog/website-tips/how-to-create-breadcrumb-navigation-with-css How to create Breadcrumb Navigation with CSS

in this article, we will tackle another famous component: the breadcrumb navigation. I will try to combine modern CSS Tricks to create a breadcrumb system easy to manage and scalable.

Read the full article online

]]>
Different Ways to Get CSS Gradient Shadows 2023-02-10T00:00:00Z https://css-tricks.com/different-ways-to-get-css-gradient-shadows/ Different Ways to Get CSS Gradient Shadows

It’s a question I hear asked quite often: Is it possible to create shadows from gradients instead of solid colors? There is no specific CSS property that does this (believe me, I’ve looked) and any blog post you find about it is basically a lot of CSS tricks to approximate a gradient. We’ll actually cover some of those as we go.

Read the full article online

]]>
A CSS-only responsive Stepper component 2023-02-09T00:00:00Z https://verpex.com/blog/website-tips/a-css-only-responsive-stepper-component A CSS-only responsive Stepper component

In this article, we will build a component commonly used everywhere especially when it comes to multi-step forms: The stepper component.

Read the full article online

]]>
A Fancy Hover Effect For Your Avatar 2023-02-03T00:00:00Z https://css-tricks.com/a-fancy-hover-effect-for-your-avatar/ A Fancy Hover Effect For Your Avatar

Read the full article online

]]>
How to make a zoom effect using CSS 2023-02-03T00:00:00Z https://verpex.com/blog/website-tips/how-to-make-a-zoom-effect-using-css How to make a zoom effect using CSS

In this article, we will cover a famous effect used in e-commerce websites: Zooming over images. We will see how to achieve such an effect using CSS and with the smallest amount of code possible. We will end with an interactive demo at the end.

Read the full article online

]]>
Creating a Custom Cursor using CSS 2023-01-24T00:00:00Z https://verpex.com/blog/website-tips/creating-a-custom-cursor-using-css Creating a Custom Cursor using CSS

In this article, we will cover different ways of creating a custom cursor using only CSS. We will study two different methods. The classic one that you probably know and an advanced one lesser know.

Read the full article online

]]>
CSS Infinite 3D Sliders 2022-12-16T00:00:00Z https://css-tricks.com/css-infinite-3d-sliders/ CSS Infinite 3D Sliders

This time around, we’re diving into the third dimension. It’s going to look tough at first, but lots of the code we’re looking at is exactly what we used in the first two articles in this series, with some modifications.

Read the full article online

]]>
CSS Infinite Slider Flipping Through Polaroid Images 2022-12-09T00:00:00Z https://css-tricks.com/css-infinite-slider-flipping-through-polaroid-images/ CSS Infinite Slider Flipping Through Polaroid Images

In the last article, we made a pretty cool little slider (or “carousel” if that’s what you prefer) that rotates in a circular direction. This time we are going to make one that flips through a stack of Polaroid images.

Read the full article online

]]>
How to create a responsive sidebar menu using CSS 2022-12-03T00:00:00Z https://verpex.com/blog/website-tips/how-to-create-a-responsive-sidebar-menu-using-css How to create a responsive sidebar menu using CSS

In this article, we are going to build a responsive sidebar menu. I will be reusing the same code structure as the previous article so it’s highly recommended to read it before this one to fully understand all the tricks.

Read the full article online

]]>
CSS Infinite and Circular Rotating Image Slider 2022-12-02T00:00:00Z https://css-tricks.com/css-only-infinite-and-circular-image-slider/ CSS Infinite and Circular Rotating Image Slider

Through a little series of articles, we are going to explore some fancy and uncommon CSS-only sliders. If you are of tired seeing the same ol’ classic sliders, then you are in the right place!

Read the full article online

]]>
Making Static Noise From a Weird CSS Gradient Bug 2022-11-18T00:00:00Z https://css-tricks.com/making-static-noise-from-a-weird-css-gradient-bug/ Making Static Noise From a Weird CSS Gradient Bug

Read the full article online

]]>
CSS Grid and Custom Shapes, Part 3 2022-11-11T00:00:00Z https://css-tricks.com/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 clipping and masking to create fancy layouts for image galleries.

Read the full article online

]]>
Fancy Image Decorations: Outlines and Complex Animations 2022-10-28T00:00:00Z https://css-tricks.com/fancy-image-decorations-outlines-and-complex-animations/ 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 element. In this third and final piece, we are going to explore more techniques using the CSS outline property.

Read the full article online

]]>
Fancy Image Decorations: Masks and Advanced Hover Effects 2022-10-21T00:00:00Z https://css-tricks.com/fancy-image-decorations-masks-and-advanced-hover-effects/ 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 to create awesome visual effects.

Read the full article online

]]>
Fancy Image Decorations: Single Element Magic 2022-10-14T00:00:00Z https://css-tricks.com/fancy-image-decorations-single-element-magic/ 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? Decorate an image using only the tag and nothing more.

Read the full article online

]]>
How to create an infinite image slider using CSS 2022-10-04T00:00:00Z https://verpex.com/blog/website-tips/how-to-create-an-infinite-image-slider-using-css How to create an infinite image slider using CSS

You must have seen those sliders of images that have an infinite loop animation. They are also called infinite carousels where all the images appear and disappear indefinitely. To create such sliders, most of the tricks rely on JavaScript or on duplicating the images. In this post, we will see how to do this without JavaScript and without duplicating any of the images.

Read the full article online

]]>
How to Create Wavy Shapes & Patterns in CSS 2022-09-26T00:00:00Z https://css-tricks.com/how-to-create-wavy-shapes-patterns-in-css/ How to Create Wavy Shapes & Patterns in CSS

The wave is probably one of the most difficult shapes to make in CSS. We always try to approximate it with properties like border-radius and lots of magic numbers until we get something that feels kinda close. And that’s before we even get into wavy patterns, which are more difficult.

Read the full article online

]]>
How I Made a Pure CSS Puzzle Game 2022-09-09T00:00:00Z https://css-tricks.com/how-i-made-a-pure-css-puzzle-game/ How I Made a Pure CSS Puzzle Game

I recently discovered the joy of creating CSS-only games. It’s always fascinating how HTML and CSS are capable of handling the logic of an entire online game, so I had to try it!

Read the full article online

]]>
How to create a Tooltip/Speech Bubble using CSS 2022-08-28T00:00:00Z https://verpex.com/blog/website-tips/how-to-create-a-tooltip-speech-bubble-using-css How to create a Tooltip/Speech Bubble using CSS

In this article, we will study two common web components: Tooltip and Speech Bubble. Both have different names but share the same design idea. We always have that small arrow/tail linked to a rectangular element with or without rounded corners.

Read the full article online

]]>
CSS Grid and Custom Shapes, Part 2 2022-08-22T00:00:00Z https://css-tricks.com/css-grid-and-custom-shapes-part-2/ CSS Grid and Custom Shapes, Part 2

Ready for the second round? We are still working with CSS Grid, clip-path, and mask, but by the end of this article, we’ll end up with different ways to arrange images on the grid, including some rad hover effects that make for an authentic, interactive experience to view pictures.

Read the full article online

]]>
CSS Grid and Custom Shapes, Part 1 2022-08-15T00:00:00Z https://css-tricks.com/css-grid-and-custom-shapes-part-1/ 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. This time, I want to dive into another type of grid, one that works with shapes.

Read the full article online

]]>
Zooming Images in a Grid Layout 2022-08-08T00:00:00Z https://css-tricks.com/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. Say you want to add some fancy hover effect to the images where they grow and zoom beyond the rows and columns where they sit? We can do that!

Read the full article online

]]>
How to create a CSS-only loader with one element 2022-08-07T00:00:00Z https://verpex.com/blog/website-tips/how-to-create-a-css-only-loader-with-one-element How to create a CSS-only loader with one element

A loader is an important component of a website. It can be used in many places where we need to show that something is in progress. Such a component needs to be as simple as possible and in this post, we will learn how to create different CSS-only loaders with an optimized code.

Read the full article online

]]>
Exploring CSS Grid’s Implicit Grid and Auto-Placement Powers 2022-08-01T00:00:00Z https://css-tricks.com/exploring-css-grids-implicit-grid-and-auto-placement-powers/ Exploring CSS Grid’s Implicit Grid and Auto-Placement Powers

Read the full article online

]]>
How to create background pattern using CSS & conic-gradient 2022-07-03T00:00:00Z https://verpex.com/blog/website-tips/how-to-create-background-pattern-using-css-conic-gradient How to create background pattern using CSS & conic-gradient

Having a good background pattern can make a difference in your website design. Thanks to CSS gradients, we can create fancy and cool patterns using a few lines of code. In this post, we will study the conic-gradient and use it to create different CSS patterns.

Read the full article online

]]>
Single Element Loaders: Going 3D! 2022-07-01T00:00:00Z https://css-tricks.com/single-element-loaders-going-3d/ 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.

Read the full article online

]]>
Single Element Loaders: The Bars 2022-06-24T00:00:00Z https://css-tricks.com/single-element-loaders-the-bars/ Single Element Loaders: The Bars

We’ve looked at spinners. We’ve looked at dots. Now we’re going to tackle another common pattern for loaders: bars. And we’re going to do the same thing in this third article of the series as we have the others by making it with only one element and with flexible CSS that makes it easy to create variations.

Read the full article online

]]>
Single Element Loaders: The Dots 2022-06-17T00:00:00Z https://css-tricks.com/single-element-loaders-the-dots/ Single Element Loaders: The Dots

We’re looking at loaders in this series. More than that, we’re breaking down some common loader patterns and how to re-create them with nothing more than a single div. So far, we’ve picked apart the classic spinning loader. Now, let’s look at another one you’re likely well aware of: the dots.

Read the full article online

]]>
How to style a progress bar using CSS 2022-06-12T00:00:00Z https://verpex.com/blog/website-tips/how-to-style-a-progress-bar-using-css How to style a progress bar using CSS

HTML offers a native element to show progression which is progress. In this post, we will learn a few CSS tricks to style such an element. We will also see how to make it look the same across browsers because the native element will, by default, render differently based on the browser.

Read the full article online

]]>
Single Element Loaders: The Spinner 2022-06-10T00:00:00Z https://css-tricks.com/single-element-loaders-the-spinner/ Single Element Loaders: The Spinner

Making CSS-only loaders is one of my favorite tasks. It’s always satisfying to look at those infinite animations. And, of course, there are lots of techniques and approaches to make them. In this article, though, we will see how to make a single element loader writing as little code as possible.

Read the full article online

]]>
Cool CSS Hover Effects That Use Background Clipping, Masks, and 3D 2022-05-26T00:00:00Z https://css-tricks.com/css-hover-effects-background-masks-3d/ Cool CSS Hover Effects That Use Background Clipping, Masks, and 3D

In this article, we’re talking about background clipping, CSS masks, and even getting our feet wet with 3D perspectives. In other words, we are going to explore advanced techniques this time around and push the limits of what CSS can do with hover effects!

Read the full article online

]]>
Cool Hover Effects That Use CSS Text Shadow 2022-05-13T00:00:00Z https://css-tricks.com/cool-hover-effects-that-use-css-text-shadow/ Cool Hover Effects That Use CSS Text Shadow

In my last article we saw how CSS background properties allow us to create cool hover effects. This time, we will focus on the CSS text-shadow property to explore even more interesting hovers.

Read the full article online

]]>
How to create a responsive hamburger menu using CSS 2022-05-12T00:00:00Z https://verpex.com/blog/website-tips/how-to-create-a-responsive-hamburger-menu-using-css How to create a responsive hamburger menu using CSS

The hamburger menu is a must when dealing with responsive design. Having the ability to show/hide the menu on small screens is essential to keep the navigation on the website easy. In this post, we will build a CSS-only responsive menu with a minimalist code.

Read the full article online

]]>
Cool Hover Effects That Use Background Properties 2022-04-27T00:00:00Z https://css-tricks.com/cool-hover-effects-using-background-properties/ Cool Hover Effects That Use Background Properties

Read the full article online

]]>
Learn CSS radial-gradient by Building Background Patterns 2022-04-19T00:00:00Z https://www.freecodecamp.org/news/css-radial-gradient/ Learn CSS radial-gradient by Building Background Patterns

If you are new to CSS gradients, you may have heard about something called radial-gradient(). If you have never used it before, you are in the right place to learn about it.

Read the full article online

]]>
How to style checkbox and radio buttons using CSS 2022-04-17T00:00:00Z https://verpex.com/blog/website-tips/how-to-style-checkbox-and-radio-buttons-using-css How to style checkbox and radio buttons using CSS

In this post, we will study CSS techniques that allow us to update the style of such elements without extra HTML code. Yes, we are going to give a fresh look to our input elements using only CSS!

Read the full article online

]]>
CSS effects on images 2022-03-30T00:00:00Z https://verpex.com/blog/website-tips/css-tricks-to-make-your-image-look-stunning CSS effects on images

A lot of tricks exist to style images but in this post, we will see how to style them without a ton of code, using CSS effects. We will consider only the element and a few lines of CSS code. No extra elements and No pseudo element!

Read the full article online

]]>
Tricks to Cut Corners Using CSS Mask and Clip-Path Properties 2022-03-30T00:00:00Z https://css-tricks.com/cut-corners-using-css-mask-and-clip-path-properties/ 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. In this article, we will consider modern techniques to create unique corner shapes while trying to work from reusable code that allows us to produce different results by adjusting variables.

Read the full article online

]]>
How to Create a Section Divider Using CSS 2022-02-25T00:00:00Z https://www.freecodecamp.org/news/section-divider-using-css/ How to Create a Section Divider Using CSS

We will explore different section dividers made using only CSS and some optimized code that's easy to manipulate.

Read the full article online

]]>
How to Create a CSS-Only Ribbon for Your Website 2022-02-08T00:00:00Z https://www.freecodecamp.org/news/make-a-css-only-ribbon/ How to Create a CSS-Only Ribbon for Your Website

In this post, I will show you how to create two types of ribbons with some simple CSS code where you don't need to bother yourself with tweaking a lot of values

Read the full article online

]]>
Fancy CSS Borders Using Masks (Zig-Zag, Wavy, and More) 2022-01-26T00:00:00Z https://css-tricks.com/css-borders-using-masks/ Fancy CSS Borders Using Masks (Zig-Zag, Wavy, and More)

Have you ever tried to make CSS borders in a repeating zig-zag pattern? Like where a colored section of a website ends and another differently colored section begins — not with a straight line, but angled zig zags, rounded humps, or waves.

Read the full article online

]]>
How to Create a CSS-Only Loader Using One Element 2022-01-14T00:00:00Z https://www.freecodecamp.org/news/how-to-create-a-css-only-loader/ How to Create a CSS-Only Loader Using One Element

In this post, we will see how to build two types of loaders with only one element and a few lines of CSS code. Not only this but we will make them customizable so you can easily create different variations from the same code

Read the full article online

]]>
How to Create a Pie Chart Using Only CSS 2022-01-06T00:00:00Z https://www.freecodecamp.org/news/css-only-pie-chart/ How to Create a Pie Chart Using Only CSS

In this post, I will show you how to create a pie chart using CSS and only one element.

Read the full article online

]]>
How to Make an Animated Back to Top Button Using Only CSS 2022-01-03T00:00:00Z https://www.freecodecamp.org/news/css-only-back-to-top-button/ How to Make an Animated Back to Top Button Using Only CSS

Most websites rely on JavaScript to toggle the visibility of the button based on the amount of scroll. In this post, I will show you how to create such an effect using only CSS.

Read the full article online

]]>
Responsive Layouts, Fewer Media Queries 2021-11-22T00:00:00Z https://css-tricks.com/responsive-layouts-fewer-media-queries/ Responsive Layouts, Fewer Media Queries

Since the introduction of media queries (literally decades ago), CSS has evolved to the points that there are a lot of tricks that can help us drastically reduce the usage of media queries we use. In some cases, I will show you how to replace multiple media queries with only one CSS declaration. These approaches can result in less code, be easier to maintain, and be more tied to the content at hand.

Read the full article online

]]>
Exploring the CSS Paint API: Rounding Shapes 2021-10-22T00:00:00Z https://css-tricks.com/exploring-the-css-paint-api-rounding-shapes/ Exploring the CSS Paint API: Rounding Shapes

Adding borders to complex shapes is a pain, but rounding the corner of complex shapes is a nightmare! Luckily, the CSS Paint API is here to the rescue! That’s what we’re going to look at as part of this “Exploring the CSS Paint API” series.

Read the full article online

]]>
Exploring the CSS Paint API: Polygon Border 2021-09-20T00:00:00Z https://css-tricks.com/exploring-the-css-paint-api-polygon-border/ 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 case. In this article, I will show you how to solve this problem using the CSS Paint API.

Read the full article online

]]>
Build your CSS loader with only one div — The Dots 2021-09-15T00:00:00Z https://dev.to/afif/build-your-css-loader-with-only-one-div-the-dots-3882 Build your CSS loader with only one div — The Dots

Yes, another post about CSS loaders but this time you will build the loader! In this article, I will share with you a few tricks I used to build some of my loaders.

Read the full article online

]]>
A Multi-line CSS only Typewriter effect 2021-09-03T00:00:00Z https://dev.to/afif/a-multi-line-css-only-typewriter-effect-3op3 A Multi-line CSS only Typewriter effect

Read the full article online

]]>
Exploring the CSS Paint API: Blob Animation 2021-08-30T00:00:00Z https://css-tricks.com/exploring-the-css-paint-api-blob-animation/ Exploring the CSS Paint API: Blob Animation

After the fragmentation effect, I am going to tackle another interesting animation: the blob! We all agree that such effect is hard to achieve with CSS, so we generally reach for SVG to make those gooey shapes. But now that the powerful Paint API is available, using CSS is not only possible, but maybe even a preferable approach once browser support comes around.

Read the full article online

]]>
A scalable CSS only Typewriter Effect 2021-08-28T00:00:00Z https://dev.to/afif/a-scalable-css-only-typewriter-effect-2opn A scalable CSS only Typewriter Effect

You want a Typewriter effect for your text but you are lost within all the variations that use JS and the ones that use a complex CSS code. Search no more! Here is a simple typewriter effect with only a few lines of CSS where you don't need to deal with any complex code. It's scalable and works with any kind of text.

Read the full article online

]]>
Exploring the CSS Paint API: Image Fragmentation Effect 2021-08-09T00:00:00Z https://css-tricks.com/exploring-the-css-paint-api-image-fragmentation-effect/ Exploring the CSS Paint API: Image Fragmentation Effect

In my previous article, I created a fragmentation effect using CSS mask and custom properties. It was a neat effect but it has one drawback: it uses a lot of CSS code (generated using Sass). This time I am going to redo the same effect but rely on the new Paint API.

Read the full article online

]]>
A CSS-only reaction component using emoji 2021-07-18T00:00:00Z https://dev.to/afif/a-css-only-reaction-component-using-emoji-28i4 A CSS-only reaction component using emoji

Like star rating, reaction components are something widely used in many websites so here I am with my own implementation: A CSS-only reaction component that works with emojis or any kind of custom icons.

Read the full article online

]]>
Build Complex CSS Transitions using Custom Properties and cubic-bezier() 2021-07-14T00:00:00Z https://css-tricks.com/build-complex-css-transitions-using-custom-properties-and-cubic-bezier/ Build Complex CSS Transitions using Custom Properties and cubic-bezier()

I recently illustrated how we can achieve complex CSS animations using cubic-bezier() and how to do the same when it comes to CSS transitions. I was able to create complex hover effect without resorting to keyframes. In this article, I will show you how to create even more complex CSS transitions.

Read the full article online

]]>
Hexagons and Beyond: Flexible, Responsive Grid Patterns, Sans Media Queries 2021-06-03T00:00:00Z https://css-tricks.com/hexagons-and-beyond-flexible-responsive-grid-patterns-sans-media-queries/ Hexagons and Beyond: Flexible, Responsive Grid Patterns, Sans Media Queries

I’m here to resurrect our old friend float to create the same sort of complex and responsive layout but with less complexity and without a single media query.

Read the full article online

]]>
Advanced CSS Animation Using cubic-bezier() 2021-05-13T00:00:00Z https://css-tricks.com/advanced-css-animation-using-cubic-bezier/ Advanced CSS Animation Using cubic-bezier()

There’s one especially neat timing function that gives us total control to create custom timing functions. That would be cubic-bezier() and in this post I will show you the power of it and how it can be used to create fancy animation without too much complexity.

Read the full article online

]]>
Float an Element to the Bottom Corner 2021-04-19T00:00:00Z https://css-tricks.com/float-an-element-to-the-bottom-corner/ Float an Element to the Bottom Corner

Need to lay out an element to the right or the left, such that text wraps around it? That’s an easy task for the float property. But what about if you also want to push that element (let’s call it an image) to one of the bottom corners while we’re at it? Sounds a bit tricky, right? We probably need JavaScript? Nope, few lines of (tricky) CSS can do it!

Read the full article online

]]>
What no one told you about CSS Variables 2021-04-08T00:00:00Z https://dev.to/afif/what-no-one-told-you-about-css-variables-553o What no one told you about CSS Variables

CSS Variables are great but do you know everything about them? In this post, I will highlight a few quirks around CSS variables that no one talks about. After that, you won't look at them the same way anymore.

Read the full article online

]]>
Image Fragmentation Effect With CSS Masks and Custom Properties 2021-03-23T00:00:00Z https://css-tricks.com/image-fragmentation-effect-with-css-masks-and-custom-properties/ Image Fragmentation Effect With CSS Masks and Custom Properties

I have a similar idea, but with a different approach. Instead of revealing the image, let’s start with it fully revealed, then let it disappear one tile at a time, as if it’s floating away in tiny fragments.

Read the full article online

]]>
All you need to know about background-position 2021-03-13T00:00:00Z https://dev.to/this-is-learning/all-you-need-to-know-about-background-position-3aac All you need to know about background-position

Read the full article online

]]>
How to correctly position rotated text using CSS 2021-03-11T00:00:00Z https://dev.to/afif/how-to-correctly-position-rotated-text-using-css-1gjc How to correctly position rotated text using CSS

It's always a hassle to correctly position a rotated text. Especially to position such text in the corner or the sides of another element.

Read the full article online

]]>
Responsive text based on image size 2021-03-08T00:00:00Z https://dev.to/afif/responsive-text-based-on-image-size-36n9 Responsive text based on image size

We all face such a requirement where we need to make a title below (or above) an image to not exceed the width of the image. In most of the cases, we need them to have the same width.

Read the full article online

]]>
Never make your text container a flexbox container 2021-03-03T00:00:00Z https://dev.to/afif/never-make-your-text-container-a-flexbox-container-m9p Never make your text container a flexbox container

Flexbox is great. Unfortunately, many developers use it in the wrong way. To be more precise, they use it automatically everywhere even when it should not be used.

Read the full article online

]]>
Border with gradient and radius 2021-02-12T00:00:00Z https://dev.to/afif/border-with-gradient-and-radius-387f Border with gradient and radius

Read the full article online

]]>