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 CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

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.

            
              <!-- 
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%);
}
//making .sw (south west) the 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
Loading ..................

Console