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.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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.

+ add another resource

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

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.

            
              <!-- 
From a logo concept on dribbble.
https://dribbble.com/shots/3766206-Kaleidoscope
Because bored
-->
<div class="wrap">
  <div class="logo">
    <div class="grid">
      <div class="red nw"></div>
      <div class="blue sw"></div>
      <div class="blue se"></div>
      <div class="red ne"></div>
      <div class="yellow ne"></div>
      <div class="navy se"></div>
      <div class="navy sw"></div>
      <div class="yellow nw"></div>
      <div class="yellow se"></div>
      <div class="navy ne"></div>
      <div class="navy nw"></div>
      <div class="yellow sw"></div>
      <div class="red sw"></div>
      <div class="blue nw"></div>
      <div class="blue ne"></div>
      <div class="red se"></div>
    </div>
    <div class="grid">
      <div class="blue se"></div>
      <div class="navy ne"></div>
      <div class="navy nw"></div>
      <div class="blue sw"></div>
      <div class="navy sw"></div>
      <div class="black nw"></div>
      <div class="black ne"></div>
      <div class="navy se"></div>
      <div class="navy nw"></div>
      <div class="black sw"></div>
      <div class="black se"></div>
      <div class="navy ne"></div>
      <div class="blue ne"></div>
      <div class="navy se"></div>
      <div class="navy sw"></div>
      <div class="blue nw"></div>
    </div>
    <div class="grid">
      <div class="red nw"></div>
      <div class="blue sw"></div>
      <div class="blue se"></div>
      <div class="red ne"></div>
      <div class="yellow ne"></div>
      <div class="navy se"></div>
      <div class="navy sw"></div>
      <div class="yellow nw"></div>
      <div class="yellow se"></div>
      <div class="navy ne"></div>
      <div class="navy nw"></div>
      <div class="yellow sw"></div>
      <div class="red sw"></div>
      <div class="blue nw"></div>
      <div class="blue ne"></div>
      <div class="red se"></div>
    </div>
  </div>
  <div class="byline">
    <span class="k">K</span>
    <span class="a">A</span>
    <span class="l">L</span>
    <span class="e">E</span>
    <span class="i">I</span>
    <span class="d">D</span>
    <span class="o">O</span>
    <span class="s">S</span>
    <span class="c">C</span>
    <span class="o2">O</span>
    <span class="p">P</span>
    <span class="e2">E</span>
  </div>
</div>
            
          
!
            
              $red: #ab2e33;
$blue: #618bd7;
$navy: #1d47a0;
$yellow: #d7ae43;
$black: #080f33;

$grid-size-sm: 120px;
$grid-size-lg: 180px;

* {box-sizing: border-box;}
html, body {
  height: 100%;
}
.wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.logo {
  display: flex;
  margin-bottom: 1em;
}
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1fr);
  width: $grid-size-sm;
  height: $grid-size-sm;
  > div {
    transition: transform .3s linear;
  }
  &:hover > div  {
    transform: rotate(90deg);
  }
}
.byline {
  font-family: 'Roboto Condensed', sans-serif;
  display: flex;
  justify-content: space-between;
  width: calc(#{$grid-size-sm}*3); 
  font-size: 40px;
  span {
    position: relative;
    display: block;
    transition: order 1s;
  }
  &:hover {
    //anagrams r fun
    .k {order: 9;}
    .a {order: 4;}
    .l {order: 5;}
    .e {order: 11;}
    .i {order: 10;}
    .d {order: 3;}
    .o {order: 7;}
    .s {order: 12;}
    .c {order: 6;}
    .o2 {order: 8;}
    .p {order: 1;}
    .e2 {order: 2;}
  }
}

/* 
colours and helpers
*/
.red {
  background-image: linear-gradient(45deg, $red 50%, transparent 50%);
}
.blue {
  background-image: linear-gradient(45deg, $blue 50%, transparent 50%);
}
.yellow {
  background-image: linear-gradient(45deg, $yellow 50%, transparent 50%);
}
.navy {
  background-image: linear-gradient(45deg, $navy 50%, transparent 50%);
}
.black {
  background-image: linear-gradient(45deg, $black 50%, transparent 50%);
}
//sw (south west) is default orientation
.ne {
  transform: rotate(180deg);
}
.nw {
  transform: rotate(90deg);
}
.se {
  transform: rotate(270deg);
}

@media (min-width: 600px) {
  .grid {
    width: $grid-size-lg;
    height: $grid-size-lg;
  }
  .byline {
    width: calc(#{$grid-size-lg}*3);
    font-size: 60px;
  }
}
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console