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.

            
              <div class="screen">
  <div></div>
  <div></div>
  <div></div>
  <div></div>
  <div></div>
  <div></div>
  <div></div>
  <div></div>
  <div></div>
  <div></div>
  <div></div>
  <div></div>
  <div></div>
  <div></div>
  <div></div>
  <div></div>
  <div></div>
  <div></div>
  <div></div>
  <div></div>
  <div></div>
  <div></div>
  <h1>The mount</h1>
</div>
            
          
!
            
              html,body {
  padding: 0;
  margin: 0;
  height: 100%;
  background-color: #222;
  font-size: 16px;
  color: #fff;
  text-align: center;
  overflow: hidden;
}
.screen {
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  position: absolute;
  transform-style: preserve-3d;
  perspective: 500px;
  font-size: 3vw;
  width: 30em;
  height: calc(30em / 1.66);
  background-image: linear-gradient(to bottom, rgb(0, 50, 168), rgb(32, 100, 238) 60%, rgb(191, 93, 63) 90%);
  overflow: hidden;
  animation: gray 1s 6.5s 1 ease-out both;
}
@keyframes gray {
  0% {
    filter: grayscale(1);
  }
  100% {
    filter: grayscale(0);
  }
}
/* mountain */
.screen::before {
  content: "";
  display: block;
  background-color: #fff;
  background-image:
    linear-gradient(-80deg, transparent 40%, hsla(0, 50%, 70%, 0.2) 30%, hsla(200, 20%, 50%, 0.8) 70%, transparent 70%),
    linear-gradient(-80deg, transparent, hsla(190, 30%, 60%, 0.8) 10%, hsla(190, 50%, 30%, 0.5) 50%, transparent 70%),
    linear-gradient(-60deg, transparent, hsla(140, 50%, 30%, 0.8) 80%, hsla(140, 50%, 30%, 0.8) 90%, transparent 90%),
    linear-gradient(30deg, transparent, hsla(140, 70%, 30%, 0.8) 10%, hsla(140, 70%, 20%, 0.8) 90%, transparent 90%),
    linear-gradient(10deg, transparent 10%, hsla(100, 50%, 30%, 0.6) 10%, hsla(100, 50%, 30%, 0.4) 80%, transparent 70%),
    linear-gradient(70deg, transparent 40%, hsla(150, 50%, 30%, 0.2) 30%, hsla(150, 50%, 30%, 0.2) 70%, transparent 70%),
    linear-gradient(transparent,transparent);
  background-position: -6em 4em, -2em 0em, 0em 5em, 8em 0em, 0em 5em, 1em 1em, 0 0;
  background-repeat: no-repeat;
  position: absolute;
  width: 20em;
  height: 20em;
  bottom: -14em;
  left: calc(50% - 10em);
  transform: scale(0.7, 1) rotate(45deg);
  animation: m 2s 0s 1 ease-out both;
}
@keyframes m {
  0% {transform: scale(0.6, 0.8) rotate(45deg);}
  100% {transform: scale(0.7, 1) rotate(45deg);}
}
/* low mountain */
.screen::after {
  content: "";
  display: block;
  width: 100%;
  height: 40%;
  position: absolute;
  bottom: 0;
  z-index: 0;
  background-image:
    linear-gradient(-193deg, rgba(0, 0, 0, 0) 40%, hsla(170, 50%, 20%, 0.5) 40%, hsla(170, 50%, 10%, 0)),
    linear-gradient(-180deg, rgba(0, 0, 0, 0) 40%, hsla(150, 20%, 40%, 0.8) 40%, hsla(150, 30%, 20%, 0.8)),
    linear-gradient(-190deg, rgba(0, 0, 0, 0) 40%, hsla(150, 30%, 50%, 0.8) 40%, hsla(150, 30%, 20%, 0.8)),
    linear-gradient(-170deg, rgba(0, 0, 0, 0) 40%, hsla(150, 30%, 30%, 0.8) 40%, hsla(150, 30%, 10%, 0.8));
  background-position: 0 0px, 0 0px, 0 0px, 100% 0;
  background-repeat: repeat-x, no-repeat, no-repeat, no-repeat, no-repeat;
  background-size: 20% 220%, 100% 200%, 50% 180%, 50% 180%;
  animation: m2 2s 0s 1 ease-out both;
}
@keyframes m2 {
  0% {transform: translateY(0) scale(1.5);}
  100% {transform: translateY(1em) scale(1);}
}

.screen div {
  height: 1em;
  width: 1em;
  left: calc(50% - 0.5em);
  top: calc(50% - 2em);
  line-height: 1.3;
  position: absolute;
  transform-origin: center center 0;
  z-index: 200;
  animation: flying 3s 0s 1 ease-in both;
}
@keyframes flying {
    0% {transform:translate3d(-2000%,-800%,700px) rotateX(130deg);}
  100% {transform:translate3d(0,0,0px) rotateX(0);}
}
.screen div::before {
  content: "⭐️";
  display: block;
  font-size: 1em;
  line-height: 1;
  height: 1em;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
  transform-origin: center bottom 0;
  transform: rotate(320deg) translate(0px, 0em);
  animation: circle 3s 3.5s 1 linear both;/*forwards*/
}
@keyframes circle {
  0% {transform:rotate(320deg) translate(0px, 5.5em);}
  100% {transform:rotate(43deg) translate(0px, 5.5em);}
}

.screen div:nth-child(1) {animation-delay: 0.1s;}
.screen div:nth-child(2) {animation-delay: 0.2s;}
.screen div:nth-child(3) {animation-delay: 0.3s;}
.screen div:nth-child(4) {animation-delay: 0.4s;}
.screen div:nth-child(5) {animation-delay: 0.5s;}
.screen div:nth-child(6) {animation-delay: 0.6s;}
.screen div:nth-child(7) {animation-delay: 0.7s;}
.screen div:nth-child(8) {animation-delay: 0.8s;}
.screen div:nth-child(9) {animation-delay: 0.9s;}
.screen div:nth-child(10) {animation-delay: 1.0s;}
.screen div:nth-child(11) {animation-delay: 1.1s;}
.screen div:nth-child(12) {animation-delay: 1.2s;}
.screen div:nth-child(13) {animation-delay: 1.3s;}
.screen div:nth-child(14) {animation-delay: 1.4s;}
.screen div:nth-child(15) {animation-delay: 1.5s;}
.screen div:nth-child(16) {animation-delay: 1.6s;}
.screen div:nth-child(17) {animation-delay: 1.7s;}
.screen div:nth-child(18) {animation-delay: 1.8s;}
.screen div:nth-child(19) {animation-delay: 1.9s;}
.screen div:nth-child(20) {animation-delay: 2.0s;}
.screen div:nth-child(21) {animation-delay: 2.1s;}
.screen div:nth-child(22) {animation-delay: 2.2s;}

.screen div:nth-child(1)::before   {animation-delay: 2.9s;animation-iteration-count: 1;}
.screen div:nth-child(2)::before   {animation-delay: 3.0s;animation-iteration-count: 0.9524;}
.screen div:nth-child(3)::before   {animation-delay: 3.1s;animation-iteration-count: 0.9048;}
.screen div:nth-child(4)::before   {animation-delay: 3.2s;animation-iteration-count: 0.8571;}
.screen div:nth-child(5)::before   {animation-delay: 3.3s;animation-iteration-count: 0.8095;}
.screen div:nth-child(6)::before   {animation-delay: 3.4s;animation-iteration-count: 0.7619;}
.screen div:nth-child(7)::before   {animation-delay: 3.5s;animation-iteration-count: 0.7143;}
.screen div:nth-child(8)::before   {animation-delay: 3.6s;animation-iteration-count: 0.6580;}
.screen div:nth-child(9)::before   {animation-delay: 3.7s;animation-iteration-count: 0.6190;}
.screen div:nth-child(10)::before  {animation-delay: 3.8s;animation-iteration-count: 0.5714;}
.screen div:nth-child(11)::before  {animation-delay: 3.9s;animation-iteration-count: 0.5238;}
.screen div:nth-child(12)::before  {animation-delay: 4.0s;animation-iteration-count: 0.4762;}
.screen div:nth-child(13)::before  {animation-delay: 4.1s;animation-iteration-count: 0.4286;}
.screen div:nth-child(14)::before  {animation-delay: 4.2s;animation-iteration-count: 0.3810;}
.screen div:nth-child(15)::before  {animation-delay: 4.3s;animation-iteration-count: 0.3365;}
.screen div:nth-child(16)::before  {animation-delay: 4.4s;animation-iteration-count: 0.2857;}
.screen div:nth-child(17)::before  {animation-delay: 4.5s;animation-iteration-count: 0.2381;}
.screen div:nth-child(18)::before  {animation-delay: 4.6s;animation-iteration-count: 0.1905;}
.screen div:nth-child(19)::before  {animation-delay: 4.7s;animation-iteration-count: 0.1429;}
.screen div:nth-child(20)::before  {animation-delay: 4.8s;animation-iteration-count: 0.0952;}
.screen div:nth-child(21)::before  {animation-delay: 4.9s;animation-iteration-count: 0.0476;}
.screen div:nth-child(22)::before  {animation-delay: 5.0s;animation-iteration-count: 0;}
h1 {
  font-family: "Norican",cursive;
  font-size: 2em;
  font-weight: normal;
  left: 0;
  right: 0;
  top: 2.8em;
  bottom: 0;
  margin: auto;
  position: absolute;
  z-index: 300;
  animation: title 2s 4s 1 ease both;
}
@keyframes title {
  0% {
    transform: translateZ(500px);
    opacity: 0;
  }
  50% {
    opacity: 0;
  }
  100% {
    transform: translateZ(0px);
    opacity: 1;
  }
}
            
          
!
999px
Loading ..................

Console