cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - Activehtmlicon-personicon-teamoctocatpop-outspinnerstartv

4-planet system SuperQuadAqua

A Pen By Captain Anonymous

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.

            
              .description
  %h1 SuperQuadAqua System
    
.aqua-syst
  .epic
  .b
  .c
  .d
  .e

            
          
!
            
              $year-in-second : 30; // 1 Earth year = 30 sec

@function revolution($pl-year-in-days){
  @return $pl-year-in-days * $year-in-second / 365.2563 + s  //Earth reference
}
@function alphaRandom(){
  @return random(1000)*.001;
}
@function stars($s, $max-area, $min-area : 0, $star-size : 0){
  $stars : #{$min-area + random($max-area)}px #{$min-area + random($max-area)}px 0 #{$star-size}px rgba(255,255,255, alphaRandom()); 
  @for $i from 1 to $s{
    $stars: '#{$stars} , #{$min-area + random($max-area)}px #{$min-area + random($max-area)}px 0 #{$star-size}px rgba(255,255,255, #{alphaRandom()})'
  }
  @return unquote($stars);
}

$epic: 100px;
$b-orb : 430px; $b-pl: 23px; 
$c-orb : 570px; $c-pl: 24px; 
$d-orb : 760px; $d-pl: 31px; 
$e-orb : 1020px; $e-pl: 25px;


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

html, body{
  height:100%;
  width:100%;
}

body{
  font:normal 1em/1.45em "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  color:#fff;
  background: radial-gradient(ellipse at bottom, #1C2837 0%, #050608 100%);
  background-attachment:fixed;
}

h1{
  font-weight:300;
  font-size:1.5em;
  font-family: Lato;
  line-height:1.6em;
  letter-spacing:.1em;
}

a, a:visited{
  text-decoration:none;
  color:white;
  opacity:.7;
  &:hover{
    opacity:1
  }
  &.icon{
    margin-right:2px;
    padding:3px;
  }
}

.description{
  padding:30px;
  position:absolute;
  top:0;
  left:0;
  width:25%;
  z-index:999;
  p{
    font-size:.9em;
    & + p{
      margin-top:20px;
    }
    &.author{
      font-size:.7em;
      .fa-heart{
        color:#860014;
      }
    }
  }
}

hr{
  margin:26px 0;
  border:0;
  border-top:1px solid white;
  background:transparent;
  width:25%;
  opacity:.1;
}

code{
  color: #ae94c0;
  font-family:Menlo, Monaco, Consolas, 'Courier New', monospace;
  font-size:.9em;
}

.aqua-syst{
  &:after{
    content:"";
    position:absolute;
    height:2px;
    width:2px;
    top:-2px;
    background:white;
    box-shadow: stars(500, 1800);
    border-radius:100px;
  }
  margin:0 auto;
  width:100%;
  height:100%;
  position:relative;
  div{
    border-radius:1000px;
    top:50%;
    left:50%;
    position:absolute;
    z-index:999;
    &:not(.sun){
      border: 1px solid rgba(102, 166, 229, 0.12);
      &:before{
        left:50%;
        border-radius:100px;
        content:"";
        position:absolute;
      }
    }
  }
}

.epic{
  background:radial-gradient(ellipse at center, #ffd000 1%,#f9b700 39%,#f9b700 39%,#e06317 100%);
  height:$epic;
  width:$epic;
  margin-top: -$epic / 2;
  margin-left: -$epic / 2;
  background-clip: padding-box;
  border:0 !important;
  background-position: -28px -103px;
  background-size: 175%;
  box-shadow: 0 0 10px 2px rgba(255, 107, 0, 0.4), 0 0 22px 11px rgba(255, 203, 0, 0.13);
}

.b{
  height: $b-orb;
  width: $b-orb;
  margin-top: -$b-orb / 2;
  margin-left: -$b-orb / 2;
  animation: orb revolution(87.5) linear infinite;
  &:before{
    height:$b-pl;
    width:$b-pl;
    background: #9f5e26;
    margin-top: -$b-pl / 2;
    margin-left: -$b-pl / 2;
  }
}

.c{
  height: $c-orb;
  width: $c-orb;
  margin-top: -$c-orb / 2;
  margin-left: -$c-orb / 2;
  animation: orb revolution(224.7) linear infinite;
  &:before{
    height:$c-pl;
    width:$c-pl;
    background:#BEB768;
    margin-top: -$c-pl / 2;
    margin-left: -$c-pl / 2;
  }
}

.d{
  height: $d-orb;
  width: $d-orb;
  margin-top: -$d-orb / 2;
  margin-left: -$d-orb / 2;
  animation: orb revolution(365.2563) linear infinite;
  &:before{
    height:$d-pl;
    width:$d-pl;
    background:#11abe9;
    margin-top: -$d-pl / 2;
    margin-left: -$d-pl / 2;
  }
}

.e{
  height: $e-orb;
  width: $e-orb;
  margin-top: -$e-orb / 2;
  margin-left: -$e-orb / 2;
  animation: orb revolution(687) linear infinite;
  &:before{
    height:$e-pl;
    width:$e-pl;
    background:#cf3921;
    margin-top: -$e-pl / 2;
    margin-left: -$e-pl / 2;
  }
}

.hide{
  display:none;
}
.links{
  margin-top:5px !important;
  font-size:1em !important;
}

@keyframes orb{
  from {
    transform:rotate(0deg)
  }
  to{
    transform:rotate(-360deg)
  }
}
            
          
!
999px
Close

Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.

Go PRO

Loading ..................

Console