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

Untitled

A Pen By Captain Anonymous

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.

            
              <div>
  <div class="star O">
  <div class="disk"></div></div>
  <div class="star B">
  <div class="disk"></div></div>
  <div class="star A">
  <div class="disk"></div></div>
  <div class="star F">
  <div class="disk"></div></div>
  <div class="star G">
  <div class="disk"></div></div>
  <div class="star K">
    <div class="disk"></div>
    <div class="protoplanet"></div>
  </div>
  <div class="star M">
  <div class="disk"></div></div>
  <div class="star C">
  <div class="disk"></div></div>
</div>
<div>
  <div class="star O m0">
  <div class="disk"></div></div>
  <div class="star B m2">
  <div class="disk"></div></div>
  <div class="star A m4">
  <div class="disk"></div></div>
  <div class="star F m6">
  <div class="disk"></div></div>
  <div class="star G m8">
  <div class="disk"></div></div>
  <div class="star K m10">
  <div class="disk"></div></div>
  <div class="star M m5">
    <div class="disk"></div>
  </div>
  <div class="star C m0">
  <div class="disk"></div></div>
</div>

<div>
  <div class="star O">
    <div class="crone large"></div>
  <div class="disk var cep">
    <div class="sunspotsgroup">
      <div class="sunspots"></div>
    </div>
  </div></div>
  <div class="star B">
    <div class="crone"></div>
  <div class="disk var pulsar"></div></div>
  <div class="star A">
    <div class="crone"></div>
  <div class="disk">
    <div class="sunspotsgroup">
      <div class="sunspots" style="top: -2px; left: -2px; width: 3px; height: 3px; "></div>
      <div class="sunspots" style="top: 2px; left: 2px"></div>
    </div>
  </div></div>
  <div class="star F">
    <div class="crone"></div>
    <div class="disk"></div>
  </div>
  <div class="star G">
    <div class="crone"></div>
    <div class="disk"></div>
  </div>
  <div class="star K">
    <div class="crone "></div>
    <div class="disk"></div>
  </div>
  <div class="star M">
    <div class="crone "></div>
    <div class="disk"></div>
  </div>
  <div class="star C">
    <div class="crone "></div>
    <div class="disk"></div>
  </div>
</div>

            
          
!
            
              body{
  background:black;
  color: white;
}

.star{
  margin:40px;
  width: 100px;
  height: 100px;
  display: inline-block;
  transform-origin: 50% 50%;
}
.star.m0 {  transform: scale(1.1); }
.star.m2 {  transform: scale(0.9); }
.star.m3 {  transform: scale(0.8); }
.star.m4 {  transform: scale(0.7); }
.star.m5 {  transform: scale(0.6); }
.star.m6 {  transform: scale(0.5); }
.star.m7 {  transform: scale(0.4); }
.star.m8 {  transform: scale(0.3); }
.star.m9 {  transform: scale(0.2); }
.star.m10 {  transform: scale(0.1); }

.disk{
  position: relative;
  width: 100%;
  height: 100%;
  transform-origin:center;
}
.crone + .disk {
    margin-top: -100%;
}

.crone {
  width:100%;
  height: 100%;
  border-radius: 50%;
  transform: scale(0.9, 0.7);
}

.star.O .crone.large { box-shadow: 0 0 80px 60px rgba(0, 0, 255, 0.6); }
.star.O .crone       { box-shadow: 0 0 60px 40px rgba(0, 0, 255, 0.6); }
.star.O .crone.small { box-shadow: 0 0 30px 20px rgba(0, 0, 255, 0.6); }
.star.B .crone.large { box-shadow: 0 0 80px 60px rgba(64, 64, 255, 0.9); }
.star.B .crone       { box-shadow: 0 0 60px 40px rgba(64, 64, 255, 0.9); }
.star.B .crone.small { box-shadow: 0 0 30px 20px rgba(64, 64, 255, 0.9); }
.star.A .crone.large { box-shadow: 0 0 80px 60px rgba(232, 232, 255, 0.5); }
.star.A .crone       { box-shadow: 0 0 60px 40px rgba(232, 232, 255, 0.5); }
.star.A .crone.small { box-shadow: 0 0 30px 20px rgba(232, 232, 255, 0.5); }
.star.F .crone.large { box-shadow: 0 0 80px 60px rgba(255, 255, 156, 0.5); }
.star.F .crone       { box-shadow: 0 0 40px 40px rgba(255, 255, 156, 0.5); }
.star.F .crone.small { box-shadow: 0 0 30px 20px rgba(255, 255, 156, 0.5); }
.star.G .crone.large { box-shadow: 0 0 80px 60px rgba(255, 196, 0, 0.5); }
.star.G .crone       { box-shadow: 0 0 60px 40px rgba(255, 196, 0, 0.5); }
.star.G .crone.small { box-shadow: 0 0 30px 20px rgba(255, 196, 0, 0.5); }
.star.K .crone.large { box-shadow: 0 0 80px 60px rgba(255, 128, 0, 0.6); }
.star.K .crone       { box-shadow: 0 0 60px 40px rgba(255, 128, 0, 0.6); }
.star.K .crone.small { box-shadow: 0 0 30px 20px rgba(255, 128, 0, 0.6); }
.star.M .crone.large { box-shadow: 0 0 80px 60px rgba(255, 64, 64, 0.6); }
.star.M .crone       { box-shadow: 0 0 60px 40px rgba(255, 64, 64, 0.6); }
.star.M .crone.small { box-shadow: 0 0 30px 20px rgba(255, 64, 64, 0.6); }
.star.C .crone.large { box-shadow: 0 0 80px 60px rgba(255, 0, 64, 0.5); }
.star.C .crone       { box-shadow: 0 0 60px 40px rgba(255, 0, 64, 0.5); }
.star.C .crone.small { box-shadow: 0 0 30px 20px rgba(255, 0, 64, 0.5); }
.star:hover .crone {
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-name: crone;
  animation-duration:8s;
}

.protoplanet {
  position: relative;
  width:100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle closest-side at center, gray, rgba(255, 255, 255, 0) 100%);
  transform-origin: center;
  transform: rotate(8deg) scale(3, 0.3)  ;
}
.disk + .protoplanet {
    margin-top: -100%;
}



.star.var {
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.star.var.cep:hover {
  animation-name: cep;
  animation-duration:2200ms;
}

.star.var.pulsar:hover  {
  animation-name: pulsar;
  animation-duration:220ms;
}

.star .sunspots {
  position: absolute;
  background: black;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(0, 0, 0, 0.2); 
  animation-name: rotation;
  transition-timing-function: linear;
  animation-duration: 12s;
  animation-iteration-count: infinite;
}

.star .sunspotsgroup {
  position: relative;
  top:  40%;
  animation-name: sunspotsgroup;
  transition-timing-function: linear;
  animation-duration: 12s;
  animation-iteration-count: infinite;
}

.star.O .disk {
  background: radial-gradient(circle closest-side at center, white, ghostwhite 10%, royalblue 60%, darkblue 99%, rgba(0, 0, 0, 0));
}
.star.B .disk {
  background: radial-gradient(circle closest-side at center, white, ghostwhite 40%, royalblue  99%, rgba(0, 0, 0, 0));
}
.star.A .disk {
  background: radial-gradient(circle closest-side at center, ghostwhite, ghostwhite 10%, white 90%, lightyellow  99%, rgba(0, 0, 0, 0));
}
.star.F .disk {
  background: radial-gradient(circle closest-side at center, white, white 20%, lightyellow 60%, yellow  99%, rgba(0,0,0,0) );
}
.star.G .disk {
  background: radial-gradient(circle closest-side at center, lightyellow, yellow 40%, gold 60%, orange 80%, orangeRed  99%, rgba(0,0,0,0));
}
.star.K .disk {
  background: radial-gradient(circle closest-side at center, yellow, gold 40%,  orangeRed 80%, red  99%, rgba(0,0,0,0));
}
.star.M .disk {
  background: radial-gradient(circle closest-side at center, orange, orange 20%, orangeRed 60%, red 90%, darkred  99%, rgba(0, 0, 0, 0));
}
.star.C .disk {
  background: radial-gradient(circle closest-side at center, red, red 20%, darkred  99%, rgba(0, 0, 0, 0));
}

@keyframes {
  0%   { }
  70%  {transform: scale(1.12); }
  85%  {transform: scaley(1.1) scalex(1.16); }
  100% { }
}

@keyframes crone {
  0%   { transform: scale(0.9, 0.7); }
  20%   { transform: scale(0.93, 0.75); }
  70%  {transform: scale(1, 1); }
  80%  {transform: scaleX(0.95) scaleY(0.85); }
  100% { transform: scale(0.9, 0.7); }
}

@keyframes pulsar{
  0%   { transform: scale(0.1); }
  30%   { transform: scale(0.1); }
  45%  { transform: scale(1); }
  55%  { transform: scale(1); }
  70%   { transform: scale(0.1); }
  100% { transform: scale(0.1); }
}

@keyframes cep{
  0%   { }
  3%  {transform: scale(1.5); }
  5%  {transform: scale(1.5); }
  40% {transform: scale(1.2); }
  90% { }
}

@keyframes rotation {
  0%   {transform: scaleX(0); }
  20%  {transform: scaleX(1); }
  50%  {transform:  scaleX(0); }
  100%  {transform:  scaleX(0);}
}
@keyframes sunspotsgroup {
  0%   { transform: translateX(-6px) }
  50%  {transform: translateX(94px)  }
  100%  {transform: translateX(88px) }
}

            
          
!
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