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

Related Articles

  1. CSS Motion Path
  2. CSS shape-outside Examples

Author

  • Mikael Ainalem

Made with

  • HTML / CSS

About a code

Hamburger + clip-path

Using clip-path to create a hamburger menu open effect.

Compatible browsers: Chrome, Edge, Firefox, Opera, Safari

Responsive: yes

Dependencies: -

Author

  • Mary Lou

Made with

  • HTML / CSS / JS

About a code

Shape Slideshow with clip-path

An experimental slideshow using clip-path to create shape transitions between slides.

Compatible browsers: Chrome, Edge, Firefox, Opera, Safari

Responsive: yes

Dependencies: -

Author

  • Jhey

Made with

  • HTML (Pug) / CSS (Stylus) / JS (Babel)

About a code

Squeaky Portraits with clip-path: path()

Compatible browsers: Chrome, Edge, Firefox, Opera, Safari

Responsive: no

Dependencies: -

Author

  • Shaw

Made with

  • HTML / CSS (SCSS) / JS

About a code

Clip-Path Checkbox Animation

Compatible browsers: Chrome, Edge, Firefox, Opera, Safari

Responsive: yes

Dependencies: -

Author

  • Mads Stoumann

Made with

  • HTML / CSS / JS

About a code

CSS clip-path Editor

Compatible browsers: Chrome, Edge, Firefox, Opera, Safari

Responsive: yes

Dependencies: -

Author

  • Jake Whiteley

Made with

  • HTML / CSS (SCSS) / JS (Babel)

About a code

Animated clip-path Slider Concept

Compatible browsers: Chrome, Edge, Firefox, Opera, Safari

Responsive: yes

Dependencies: gsap.js

Demo image: CSS Shapes Layout Experiment

Author

  • Kristopher Van Sant

Made with

  • HTML / CSS

About a code

CSS Shapes Layout Experiment

Compatible browsers: Chrome, Edge, Firefox, Opera, Safari

Responsive: yes

Dependencies: -

Author

  • Wes Couch

Made with

  • HTML / CSS (SCSS) / JS

About a code

Mouse Hover Reveal

Mouse hover utilizing mask-image, clip-path, background-clip, text-fill-color, and JavaScript to adjust in real time with your mouse

Compatible browsers: Chrome, Edge, Firefox, Opera, Safari

Responsive: no

Dependencies: jquery.js, gsap.js

Demo image: Split Text with clip-path

Author

  • HÃ¥vard Brynjulfsen

Made with

  • HTML / CSS (SCSS)

About a code

Split Text with clip-path

Compatible browsers: Chrome, Edge, Firefox, Opera, Safari

Responsive: yes

Dependencies: -

Demo image: Fetch the Bolt Cutters with clip-path

Author

  • Melissa Em

Made with

  • HTML / CSS (SCSS)

About a code

Fetch the Bolt Cutters with clip-path

Compatible browsers: Chrome, Edge, Firefox, Opera, Safari

Responsive: yes

Dependencies: -

Author

  • Mariana

Made with

  • HTML / CSS (SCSS)

About a code

Pure CSS Image Hover with clip-path

Compatible browsers: Chrome, Edge, Firefox, Opera, Safari

Responsive: no

Dependencies: -

Author

  • Ryan Mulligan

Made with

  • HTML (Pug) / CSS

About a code

CSS Clip-Path Hover Effect

Compatible browsers: Chrome, Edge, Firefox, Opera, Safari

Responsive: yes

Dependencies: -

Author

  • David J Sealey

Made with

  • HTML / CSS (SCSS)

About a code

Hover with Clip-Path Effect

Just experimenting with the clip-path property.

Compatible browsers: Chrome, Edge, Firefox, Opera, Safari

Responsive: no

Dependencies: -

Demo image: Clip-Pathed Image Plus Shape-Outside

Author

  • Brian Haferkamp

Made with

  • HTML (Pug) / CSS (Sass)

About a code

Clip-Pathed Image Plus Shape-Outside

This is sort of an extreme example but opens up some cool possibilities for flowing text around art-directed images.

Compatible browsers: Chrome, Edge, Firefox, Opera, Safari

Responsive: yes

Dependencies: -

Author

  • Vlad Racoare

Made with

  • HTML / CSS (SCSS)

About a code

Clip Path Hover Animation

A clip-path hover animation that is fully keyboard accessible.

Compatible browsers: Chrome, Edge, Firefox, Opera, Safari

Responsive: no

Dependencies: font-awesome.css

Author

  • Ana Tudor

Made with

  • HTML / CSS (SCSS)

About a code

Pure CSS Loader #31

One element swappy.

Compatible browsers: Chrome, Edge, Firefox, Opera, Safari

Responsive: no

Dependencies: -

Author

  • yoksel

Made with

  • HTML / CSS (SCSS)

About a code

Rhomb Gallery on Grids + clip-path

Compatible browsers: Chrome, Edge, Firefox, Opera, Safari

Responsive: yes

Dependencies: -

Author

  • Mikael Ainalem

Made with

  • HTML / CSS / JS

About a code

Brand Cut Zoom

Using clip-path to create a playful entry of images.

Compatible browsers: Chrome, Edge, Firefox, Opera, Safari

Responsive: yes

Dependencies: -

Demo image: Catpacks: Combining Clip Path & Shape Outside

Author

  • Allison Tarr

Made with

  • HTML / CSS (SCSS)

About a code

Catpacks: Combining Clip Path & Shape Outside

Use clip-path and shape-outside for wrapping your text round an image.

Compatible browsers: Chrome, Edge, Firefox, Opera, Safari

Responsive: yes

Dependencies: -

Demo image: clip-path: path()

Author

  • Chris Coyier

Made with

  • HTML / CSS

About a code

clip-path: path()

Compatible browsers: Chrome, Edge, Firefox, Opera, Safari

Responsive: no

Dependencies: -

Author

  • Jhey

Made with

  • HTML / CSS (Stylus) / JS (Babel)

About a code

clip-path Generator with React + CSS Variables

A simple clip-path generator made with React. It uses CSS variables to update the node positions for the clip-path and supports the various clip-path styles.

Compatible browsers: Chrome, Edge, Firefox, Opera, Safari

Responsive: no

Dependencies: react.js, react-dom.js

Demo image: CSS Gradient Clip-Path Borders

Author

  • George W. Park

Made with

  • HTML / CSS

About a code

CSS Gradient Clip-Path Borders

This example shows how the CSS clip-path property can be used to create a variety of shaped gradient borders.

Compatible browsers: Chrome, Edge, Firefox, Opera, Safari

Responsive: no

Dependencies: -

Author

  • Dimitra Vasilopoulou

Made with

  • HTML / CSS / JS

About a code

Split Image | Hover Effect

Compatible browsers: Chrome, Edge, Firefox, Opera, Safari

Responsive: no

Dependencies: tweenmax.js

Author

  • Charlie Marcotte

Made with

  • HTML (Pug) / CSS (Sass)

About a code

CSS Menu Concept (clip-path)

Compatible browsers: Chrome, Edge, Firefox, Opera, Safari

Responsive: no

Dependencies: -

Demo image: shape-outside with clip-path

Author

  • Stacy

Made with

  • HTML / CSS (SCSS)

About a code

shape-outside with clip-path

Using shape-outside you can wrap text around a shape, but adding clip-path allows for the shape to be cut out from the whole.

Compatible browsers: Chrome, Edge, Firefox, Opera, Safari

Responsive: yes

Dependencies: -

Demo image: Brush Effect : SVG Mask Using clip-path

Author

  • Paresh Deshpande

Made with

  • HTML / CSS

About a code

Brush Effect: SVG Mask Using clip-path

Compatible browsers: Chrome, Edge, Firefox, Opera, Safari

Responsive: yes

Dependencies: -

Author

  • Emily Hayman

Made with

  • HTML / CSS (SCSS) / JS

About a code

Slider Animation Effect

Leveraged CSS border-image & clip-path to create a slider animation effect.

Compatible browsers: Chrome, Edge, Firefox, Opera, Safari

Responsive: no

Dependencies: vue.js

Author

  • Nikolay Talanov

Made with

  • HTML / CSS (SCSS) / JS

About a code

Clip-Path Revealing Slider

Compatible browsers: Chrome, Edge, Firefox, Opera, Safari

Responsive: yes

Dependencies: -

Author

  • Zach Saucier

Made with

  • HTML / CSS (SCSS)

About a code

Reverse clip-path with blend-modes

Compatible browsers: Chrome, Edge, Firefox, Opera, Safari

Responsive: yes

Dependencies: -

Author

  • Tyler Johnson

Made with

  • HTML / CSS / JS

About a code

Actual Rotating Slider

Proof of concept rotating slider. Uses clip-path and lots of math.

Compatible browsers: Chrome, Edge, Firefox, Opera, Safari

Responsive: no

Dependencies: jquery.js

Demo image: CSS Polygons with clip-path

Author

  • darsain

Made with

  • HTML / CSS

About a code

CSS Polygons with clip-path

Compatible browsers: Chrome, Edge, Firefox, Opera, Safari

Responsive: no

Dependencies: -