Collection of free CSS background-clip code examples from Codepen and other resources

Explore a collection of free CSS background-clip code examples from Codepen and other resources to create stunning text and image effects on your website.

Underline Clip Hover Animation

Author:
Marwan Zibaoui | February 15, 2020
Made with:
HTML / CSS

About a code

A fancy animated underline using text clipping. The text uses background-clip: text and a linear-gradient background to be bi-color. We get around animating the gradient by animating the background-position instead. We have to use a wrapper element for having the underline highlight under the text, since the text color is already the background!

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Responsive:
no
Dependencies:
-

Hover Text Fill Effects

Author:
Katherine Kato | January 19, 2020
Made with:
HTML / CSS (SCSS)

About a code

Hover text fill effects with CSS background-clip.

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Responsive:
yes
Dependencies:
-

Menu Hover Fill Text

Author:
alphardex | December 24, 2019
Made with:
HTML / CSS (SCSS)

About a code

color + background-clip = awesome.

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Responsive:
no
Dependencies:
-
Background Clip Text

Background Clip Text

Author:
Steve | October 1, 2018
Made with:
HTML / CSS

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Responsive:
yes
Dependencies:
-
CSS Shapes, Columns and Clipping

CSS Shapes, Columns and Clipping

Author:
Mandy Michael | June 27, 2018
Made with:
HTML / CSS (SCSS)

About a code

An experimentation with CSS columns, CSS Shapes, clip-path and background-clip.

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Responsive:
yes
Dependencies:
-

Animating Striped Text

Author:
Mandy Michael | June 25, 2018
Made with:
HTML / CSS (SCSS)

About a code

Animating striped text with background-clip and gradients.

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Responsive:
no
Dependencies:
-

CSS Oceanic Overlays

Author:
Shaw | May 24, 2018
Made with:
HTML / CSS (SCSS)

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Responsive:
yes
Dependencies:
-
Visualizing background-clip

Visualizing background-clip

Author:
George W. Park | January 26, 2018
Made with:
HTML / CSS

About a code

This example shows how the CSS background-clip property can be used to define how an element's background is applied within the element's box.

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Responsive:
yes
Dependencies:
-

background-clip Menu

Author:
André Cortellini | December 6, 2017
Made with:
HTML / CSS

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Responsive:
no
Dependencies:
-
Mask Effect

Mask Effect

Author:
Alex Tkachev | August 10, 2017
Made with:
HTML / CSS

About a code

Mask hover effect.

Compatible browsers:
Chrome, Edge, Opera, Safari
Responsive:
yes
Dependencies:
-

Playing with background-clip: text and varying text-fill-color Values

Author:
Melissa Em | April 12, 2017
Made with:
HTML / CSS

About a code

Just playing around with background-clip: text.

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Responsive:
yes
Dependencies:
-

Clip with Fixed Background

Author:
Richard | April 30, 2016
Made with:
HTML / CSS

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Responsive:
yes
Dependencies:
-
background-clip:text CSS Effect

background-clip:text CSS Effect

Author:
Jintos | November 4, 2014
Made with:
HTML / CSS (SCSS)

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Responsive:
no
Dependencies:
-

Animated Text Shadow Pattern

Author:
carpe numidium | December 21, 2013
Made with:
HTML / CSS

About a code

Uses background-clip: text & linear-gradient to simulate striped text shadow.

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Responsive:
no
Dependencies:
-

Zeppelin

Author:
simurai | April 21, 2013
Made with:
HTML / CSS

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Responsive:
no
Dependencies:
-

Discover Our Extensive Snippet Library

This heading suggests that your website provides a wide variety of snippets across different technologies, encouraging users to explore and use these resources for their development projects.

HTML Snippets.

Explore a collection of HTML snippets designed to streamline your web development process. From basic structures to complex elements.

CSS Snippets.

Discover powerful CSS snippets that help you style your web pages with ease. Whether you need layout solutions, animations

JavaScript Snippets.

Enhance your website's interactivity with our JavaScript snippets. From DOM manipulation to advanced algorithms

Bootstrap Snippets.

Leverage the power of Bootstrap with our collection of snippets. Quickly integrate responsive design components

Tailwind Snippets.

Speed up your development process with Tailwind CSS snippets. These utility-first CSS snippets enable you to

jQuery Snippets.

Simplify your JavaScript development with jQuery snippets. Easily perform common tasks like event handling, animations

React Snippets.

Build robust, component-based user interfaces with our React snippets. From state management to lifecycle methods,

Vue Snippets.

Streamline Vue.js development with our collection of snippets for creating components, managing state, and handling events.

Ready to set your Brand ablaze?

Let's craft a visual identity that ignites passion and loyalty. ✨