cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

Quick-add: + add another resource

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

Quick-add: + add another resource

Code Indentation


Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

              <h1>Clip-path Penrose Triangle</h1>
<div class="penrose-triangle">
  <div class="side"></div>
  <div class="side"></div>
  <div class="side"></div>

<p>The Penrose triangle, also known as the Penrose tribar, or the impossible tribar, is a triangular impossible object. It was first created by the Swedish artist Oscar Reutersvärd in 1934. The psychiatrist Lionel Penrose and his mathematician son Roger Penrose independently devised and popularized it in the 1950s, describing it as "impossibility in its purest form". It is featured prominently in the works of artist M. C. Escher, whose earlier depictions of impossible objects partly inspired it.</p>
              $side-one-color: #c71585; // mediumvioletred
$side-two-color: #8a0b84;
$side-three-color: #4b0082; // dreaming indigo

$side-hover-color: #87cefa; // lightskyblue

$body-font-family: 'Quicksand', sans-serif;
$header-font-family: 'Oswald', serif;

@keyframes rotate {
  from { transform: translate3d(-6.6vw, -3vw, 0) rotate3d(0, 0, 1, 0deg); }
  to { transform: translate3d(-6.6vw, -3vw, 0) rotate3d(0, 0, 1, 360deg); }

*:after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;

body {
  height: 100%;
  width: 100%;
html {
  font-size: 100%;
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  padding: 2rem;
  font: {
    family: $body-font-family;
    size: 1.3rem;
    weight: normal;

h1 {
  margin-bottom: 4rem;
  font: {
    family: $header-font-family;
    size: 4rem;
  line-height: 1.1;
  text: {
    align: center;
    transform: uppercase;

p {
  max-width: 44rem;
  margin: 4rem auto;
  font-size: 1.4rem;

.penrose-triangle {
  display: block;
  width: 20rem;
  height: 20rem;
  margin: 0 auto;
  margin-bottom: 3rem;
  position: relative;
  transform-origin: 13.3rem 11.5rem;
  animation: rotate 30s linear infinite;
  filter: drop-shadow(0 0 4rem rgba(black, 0.2));

  .side {
    display: block;
    width: 20rem;
    height: 20rem;
    position: absolute;
    clip-path: polygon(57% 0, 75% 0, 26% 85%, 89.5% 85%, 98.4% 100%, 0 100%);
    transition: background-color 1s ease;

    &:nth-of-type(1) {
      top: 0;
      left: 0;
      transform: rotate(0deg);
      background-color: $side-one-color;

    &:nth-of-type(2) {
      top: 18.3%;
      left: 43.3%;
      transform: rotate(120deg);
      background-color: $side-two-color;

    &:nth-of-type(3) {
      top: 46.5%;
      left: 5.9%;
      transform: rotate(240deg);
      background-color: $side-three-color;

    &:nth-of-type(3):hover {
      background: {
        image: url(http://aepicos.com/codepen/images/space-bg.gif);
        size: cover;
Loading ..................