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.

            
              <div class="bg">
  <div class="link">
    <a target="_blank" rel="noreferrer noopener" href="http://brushfiredesign.ca/new/wp-content/uploads/2015/01/print-design.jpg">Inspiration source</a>
    <p>Issues with animation in Firefox</p>
  </div>
  <div class="bg-wall">
    <ul>
      <li><span></span></li>
      <li><span></span></li>
      <li><span></span></li>
      <li><span></span></li>
    </ul>
  </div>
  <div class="side-wall">
    <ul class="perspective">
      <li></li>
      <li></li>
      <li></li>
      <li></li>
    </ul>
  </div>
</div>
            
          
!
            
              @import url('https://fonts.googleapis.com/css?family=Caveat');

.bg {
  height: 100vh;
  overflow: hidden;
  width: 100%;
  position: relative;
  display: grid;
  grid-template-columns: 4fr 1fr;
}

.link {
  position: absolute;
  bottom: 2em;
  left: 2em;
}

a {
  font-family: sans-serif;
  font-weight: 400;
  text-decoration: underline;
  text-decoration-skip: ink;
  color: #fff;
}

.link p {
  font-family: 'Caveat', cursive;
}

.bg-wall {
  background: linear-gradient(to right, #525252, #CACCCB);
}

.side-wall {
  background: radial-gradient(at 0% 50%, rgba(0,0,0,0.15) 25%, rgba(0,0,0,0) 90%) left no-repeat, linear-gradient(to right, #CACCCB, #BFC1C0);
  perspective: 1000px;
  z-index: 20;
}

div[class$="-wall"] {
  display: inherit;
}

ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.perspective {
  transform: rotateY(-75deg) scaleX(4);
  transform-origin: left;
  mix-blend-mode: color-burn;
  z-index: 10;
}

li {
  width: 100%;
  height: 50px;
  position: relative;
  transform-origin: right;
  transform: scaleX(0);
  animation: paint .9s .3s linear both;
  will-change: transform;
}

li:nth-child(1) {
  background: #121619;
}
li:nth-child(2) {
  background: #F8EB4A;
  animation-delay: .4s;
}
li:nth-child(3) {
  background: #E52588;
  animation-delay: .5s;
}
li:nth-child(4) {
  background: #1D9ED7;
  animation-delay: .6s;
}

.bg-wall ul {
  align-items: flex-end;
}
.bg-wall li span:after {
  content: '';
  position: absolute;
  left: 1px;
  top: 0;
  background: inherit;
  height: 100%;
  width: 50px;
  transform: translateX(-100%);
  clip-path: polygon(100% 0, 100% 100%, 98% 100%, 60% 50%, 98% 0);
}
.bg-wall li:nth-child(1) {
  width: 50%;
  z-index: 5;
  animation-delay: 1.2s;
}
.bg-wall li:nth-child(2) {
  width: calc(50% + 3em);
  z-index: 4;
  animation-delay: 1.3s;
}
.bg-wall li:nth-child(3) {
  width: calc(50% + 6em);
  z-index: 3;
  animation-delay: 1.4s;
}
.bg-wall li:nth-child(4) {
  width: calc(50% + 3em);
  z-index: 2;
  animation-delay: 1.5s;
}


.bg-wall span {
  position: absolute;
  top: 0;
  right: 0;
  background: inherit;
  height: 100%;
  width: 100%;
  z-index: 2;
}

.bg-wall li:before {
  content: '';
  top: 0;
  right: 0;
  position: absolute;
  width: 102%;
  height: 100%;
  transform-origin: right bottom;
  background: rgba(0,0,0,.4);
  filter: blur(8px);
  transform: rotate(-2.5deg);
  z-index: 1;
}


@keyframes paint {
  to {
    transform: none;
  }
}


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

html, body {
  height: 100%;
}

a,
a:visited,
a:focus,
a:active,
a:link {
  outline: 0;
}

a {
  transition: .2s ease-in-out;
}

h1, h2, h3, h4 {
  margin: .3em 0;
}

ul {
  padding: 0;
  list-style: none;
}

img {
  vertical-align: middle;
  height: auto;
  width: 100%;
}
            
          
!
999px
Loading ..................

Console