Pen Settings

HTML

CSS

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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource

JavaScript

Babel includes JSX processing.

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

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

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.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">

<body>
  <div class="container">
    <div class="page-load-animation">
      <div></div>
      <div></div>
    </div>
    <div class="application">
      <div class="header">
        <ul>
          <li></li>
          <li></li>
          <li></li>
          <li></li>
          <li></li>
        </ul>
        <div class="fa fa-wifi"></div>
        <div class="time">10:20 AM</div>
        <div class="fa fa-battery-full"></div>
        <div class="battery-percent">100%</div>
      </div>
      <input id="myinput" type="checkbox">
      <label for="myinput">+</label>
      <div class="content">
        <ul>
          <li></li>
          <li></li>
          <li></li>
          <li></li>
          <li></li>
        </ul>
        <div class="favorite">Favorite</div>
      </div>
      <input id="menu" type="checkbox">
      <label for="menu">+</label>
      <ul>
        <li class="fa fa-star"></li>
        <li class="fa fa-user"></li>
        <li class="fa fa-th"></li>
      </ul>
    </div>
  </div>
  </div>
</body>
              
            
!

CSS

              
                * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
}

body {
  height: 100vh;
  width: 100%;
}

.container {
  position: relative;
  overflow: hidden;
  height: 100%;
  width: 100%;
}

.page-load-animation {
  position: absolute;
  top: 50%;
  left: 50%;
  height: 85px;
  width: 100px;
  margin-top: -50px;
  margin-left: -50px;
  transform: rotate(-30deg) scaleX(20) scaleY(5);
}

.page-load-animation div {
  height: 50%;
  width: 100%;
  opacity: 0;
  background-color: #8888ff;
  border: 1px solid #8888ff;
}

.page-load-animation div:nth-child(1) {
  -webkit-animation: myan1 1s;
  -moz-animation: myan1 1s;
  -o-animation: myan1 1s;
  animation: myan1 1s;
  transform: translateX(50%) skewX(25deg);
  animation-fill-mode: forwards;
}

.page-load-animation div:nth-child(2) {
  -webkit-animation: myan2 1s;
  -moz-animation: myan2 1s;
  -o-animation: myan2 1s;
  animation: myan2 1s;
  transform: translateX(-50%) skewX(25deg);
  animation-fill-mode: forwards;
}


/*****************************************************************************************************************************/

.application {
  position: absolute;
  top: 50%;
  left: 50%;
  overflow: hidden;
  height: 630px;
  width: 375px;
  margin: -315px 0 0 -187.5px;
  opacity: 0;
  background-color: #ffffff;
  box-shadow: 20px 25px 100px 0 #555555;
  -webkit-animation: myan3 1s ease 1s;
  -moz-animation: myan3 1s ease 1s;
  -o-animation: myan3 1s ease 1s;
  animation: myan3 1s ease 1s;
  transform: perspective(400px) rotateY(-90deg);
  animation-fill-mode: forwards;
}

.header {
  position: relative;
  height: 3%;
  width: 100%;
}

.header ul {
  float: left;
}

.header li {
  display: inline-block;
  height: 10px;
  width: 10px;
  border: 1px solid #333344;
  border-radius: 50%;
}

.header li:nth-child(1) {
  background-color: black;
}

.header li:nth-child(2),
.header li:nth-child(3) {
  margin-left: -2px;
  background-color: black;
}

.header li:nth-child(4),
.header li:nth-child(5) {
  margin-left: -2px;
}

.fa-wifi {
  float: left;
  margin-top: 2px;
  margin-left: 7px;
}

.time {
  position: absolute;
  left: 50%;
  height: 100%;
  width: 70px;
  margin-left: -35px;
  font-size: 15px;
}

.fa-battery-full {
  float: right;
}

.battery-percent {
  float: right;
  margin-right: 5px;
  font-size: 15px;
}

input {
  position: absolute;
  visibility: hidden;
}

input#myinput + label {
  position: absolute;
  display: block;
  top: 50%;
  left: 50%;
  height: 75px;
  width: 75px;
  margin: -37.5px 0 0 -37.5px;
  cursor: pointer;
  background-color: white;
  font-size: 70px;
  color: #bbbbcc;
  text-align: center;
  border-radius: 50%;
  box-shadow: 0 2px 10px 0 #bbbbcc;
  -webkit-transition: transform 1s ease;
  -moz-transition: transform 1s ease;
  -o-transition: transform 1s ease;
  transition: transform 1s ease;
}

input#myinput + label:active {
  font-size: 65px;
  box-shadow: 0 0 0 0;
}

input#myinput:checked + label {
  -webkit-animation: myan5 1s;
  -moz-animation: myan5 1s;
  -o-animation: myan5 1s;
  animation: myan5 1s;
  transform: translateX(100px) rotate(405deg);
  animation-fill-mode: forwards;
}

input#myinput:checked ~ .content {
  opacity: 1;
  transform: translateX(240px);
}

.content {
  position: relative;
  height: 85%;
  width: 90%;
  margin: 10% 0 0 -90%;
  opacity: 0;
  -webkit-transition: transform 1s, opacity 1s;
  -moz-transition: transform 1s, opacity 1s;
  -o-transition: transform 1s, opacity 1s;
  transition: transform 1s, opacity 1s;
}

.content > ul {
  position: relative;
  list-style-type: none;
}

.content > ul li {
  position: absolute;
  display: inline-block;
  top: 0;
  left: 0;
  height: 60px;
  width: 60px;
  background-color: blue;
  border-radius: 50%;
  box-shadow: 0 5px 10px 0 #ccccdd;
  -webkit-animation: myan4 12s infinite;
  -moz-animation: myan4 12s infinite;
  -o-animation: myan4 12s infinite;
  animation: myan4 12s infinite;
}

.content li:nth-child(1) {
  background: url(https://images.pexels.com/photos/56866/garden-rose-red-pink-56866.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500) no-repeat center;
  background-size:cover;
}

.content li:nth-child(2) {
  animation-delay: 2s;
  background: url(https://images.pexels.com/photos/1366630/pexels-photo-1366630.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500) no-repeat center;
  background-size:cover;
}

.content li:nth-child(3) {
  animation-delay: 4s;
  background: url(https://images.pexels.com/photos/1214259/pexels-photo-1214259.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500) no-repeat center;
  background-size:cover;
}

.content li:nth-child(4) {
  animation-delay: 6s;
  background: url(https://images.pexels.com/photos/85773/pexels-photo-85773.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500) no-repeat center;
  background-size:cover;
}

.content li:nth-child(5) {
  animation-delay: 8s;
  background: url(https://images.pexels.com/photos/1366630/pexels-photo-1366630.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500) no-repeat center;
  background-size:cover;
}

.favorite {
  position: absolute;
  top: 0;
  right: 0;
  height: 20px;
  width: 200px;
  padding-right: 5px;
  font-size: 20px;
  font-weight: bold;
  color: #aaaabb;
  text-align: right;
  text-transform: uppercase;
}

input#menu + label {
  position: absolute;
  right: 0;
  bottom: 0;
  height: 75px;
  width: 75px;
  background-color: #6666ff;
  font-size: 70px;
  color: white;
  text-align: center;
  border-radius: 50%;
  box-shadow: -2px -2px 20px 0 #bbbbcc;
  -webkit-transition: transform 0.5s;
  -moz-transition: transform 0.5s;
  -o-transition: transform 0.5s;
  transition: transform 0.5s;
}

input#menu + label:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  height: 100%;
  width: 100%;
  background-color: #6666ff;
  border-radius: 50%;
  -webkit-transition: transform 0.5s;
  -moz-transition: transform 0.5s;
  -o-transition: transform 0.5s;
  transition: transform 0.5s ease;
}

input#menu:checked + label {
  transform: rotate(-135deg);
}

input#menu + label:active {
  background-color: #7777ff;
  font-size: 65px;
}

input#menu:checked + label:before {
  visibility: visible;
  transform: scale(4);
}

input#menu ~ ul {
  position: relative;
  list-style-type: none;
}

input#menu ~ ul li {
  position: absolute;
  top: -10px;
  right: 1px;
  z-index: -1;
  height: 50px;
  width: 50px;
  cursor: pointer;
  opacity: 0;
  font-size: 50px;
  color: white;
  text-align: center;
  border-radius: 50%;
  -webkit-transition: transform 0.5s, opacity 0.5s, z-index 0.3s;
  -moz-transition: transform 0.5s, opacity 0.5s, z-index 0.3s;
  -o-transition: transform 0.5s, opacity 0.5s, z-index 0.3s;
  transition: transform 0.5s, opacity 0.5s, z-index 0.3s;
}

input#menu:checked ~ ul li:nth-child(1) {
  z-index: 0;
  opacity: 1;
  transform: translateX(-90px) translateY(-90px);
}

input#menu:checked ~ ul li:nth-child(2) {
  z-index: 0;
  opacity: 1;
  transform: translateY(-120px);
}

input#menu:checked ~ ul li:nth-child(3) {
  z-index: 0;
  opacity: 1;
  transform: translateX(-120px);
}


/****************************************************************************************************************************************/

@media screen and (max-width: 375px) {
  .application {
    width: 350px;
    margin-left: -175px;
  }
}


/****************************************************************************************************************************************/

@-webkit-keyframes myan1 {
  50% {
    opacity: 1;
    transform: translateX(75%) skewX(25deg);
  }
  100% {
    opacity: 1;
    transform: translateX(0) skewX(25deg);
  }
}

@-moz-keyframes myan1 {
  50% {
    opacity: 1;
    transform: translateX(75%) skewX(25deg);
  }
  100% {
    opacity: 1;
    transform: translateX(0) skewX(25deg);
  }
}

@-o-keyframes myan1 {
  50% {
    opacity: 1;
    transform: translateX(75%) skewX(25deg);
  }
  100% {
    opacity: 1;
    transform: translateX(0) skewX(25deg);
  }
}

@keyframes myan1 {
  50% {
    opacity: 1;
    transform: translateX(75%) skewX(25deg);
  }
  100% {
    opacity: 1;
    transform: translateX(0) skewX(25deg);
  }
}

@-webkit-keyframes myan2 {
  50% {
    opacity: 1;
    transform: translateX(-75%) skewX(25deg);
  }
  100% {
    opacity: 1;
    transform: translateX(0) skewX(25deg);
  }
}

@-moz-keyframes myan2 {
  50% {
    opacity: 1;
    transform: translateX(-75%) skewX(25deg);
  }
  100% {
    opacity: 1;
    transform: translateX(0) skewX(25deg);
  }
}

@-o-keyframes myan2 {
  50% {
    opacity: 1;
    transform: translateX(-75%) skewX(25deg);
  }
  100% {
    opacity: 1;
    transform: translateX(0) skewX(25deg);
  }
}

@keyframes myan2 {
  50% {
    opacity: 1;
    transform: translateX(-75%) skewX(25deg);
  }
  100% {
    opacity: 1;
    transform: translateX(0) skewX(25deg);
  }
}

@-webkit-keyframes myan3 {
  80% {
    opacity: 1;
    transform: rotateY(0deg);
  }
  100% {
    opacity: 1;
    transform: rotateY(0deg);
  }
}

@-moz-keyframes myan3 {
  80% {
    opacity: 1;
    transform: rotateY(0deg);
  }
  100% {
    opacity: 1;
    transform: rotateY(0deg);
  }
}

@-o-keyframes myan3 {
  80% {
    opacity: 1;
    transform: rotateY(0deg);
  }
  100% {
    opacity: 1;
    transform: rotateY(0deg);
  }
}

@keyframes myan3 {
  80% {
    opacity: 1;
    transform: rotateY(0deg);
  }
  100% {
    opacity: 1;
    transform: rotateY(0deg);
  }
}

@-webkit-keyframes myan4 {
  0% {
    opacity: 0;
  }
  16% {
    opacity: 0.5;
    transform: translateX(125px) translateY(50px) scale(1.2);
  }
  32% {
    transform: translateX(175px) translateY(150px) scale(1.4);
  }
  48% {
    transform: translateX(225px) translateY(250px) scale(1.8);
  }
  64% {
    opacity: 1;
    transform: translateX(175px) translateY(350px) scale(1.4);
  }
  80% {
    opacity: 0.5;
    transform: translateX(125px) translateY(450px) scale(1.2);
  }
  100% {
    opacity: 0;
    transform: translateX(0px) translateY(500px);
  }
}

@-moz-keyframes myan4 {
  0% {
    opacity: 0;
  }
  16% {
    opacity: 0.5;
    transform: translateX(125px) translateY(50px) scale(1.2);
  }
  32% {
    transform: translateX(175px) translateY(150px) scale(1.4);
  }
  48% {
    transform: translateX(225px) translateY(250px) scale(1.8);
  }
  64% {
    opacity: 1;
    transform: translateX(175px) translateY(350px) scale(1.4);
  }
  80% {
    opacity: 0.5;
    transform: translateX(125px) translateY(450px) scale(1.2);
  }
  100% {
    opacity: 0;
    transform: translateX(0px) translateY(500px);
  }
}

@-o-keyframes myan4 {
  0% {
    opacity: 0;
  }
  16% {
    opacity: 0.5;
    transform: translateX(125px) translateY(50px) scale(1.2);
  }
  32% {
    transform: translateX(175px) translateY(150px) scale(1.4);
  }
  48% {
    transform: translateX(225px) translateY(250px) scale(1.8);
  }
  64% {
    opacity: 1;
    transform: translateX(175px) translateY(350px) scale(1.4);
  }
  80% {
    opacity: 0.5;
    transform: translateX(125px) translateY(450px) scale(1.2);
  }
  100% {
    opacity: 0;
    transform: translateX(0px) translateY(500px);
  }
}

@keyframes myan4 {
  0% {
    opacity: 0;
  }
  16% {
    opacity: 0.5;
    transform: translateX(125px) translateY(50px) scale(1.2);
  }
  32% {
    transform: translateX(175px) translateY(150px) scale(1.4);
  }
  48% {
    transform: translateX(225px) translateY(250px) scale(1.8);
  }
  64% {
    opacity: 1;
    transform: translateX(175px) translateY(350px) scale(1.4);
  }
  80% {
    opacity: 0.5;
    transform: translateX(125px) translateY(450px) scale(1.2);
  }
  100% {
    opacity: 0;
    transform: translateX(0px) translateY(500px);
  }
}

@-webkit-keyframes myan5 {
  0% {
    box-shadow: 0 0 0 0 #aaaaff;
  }
  90% {
    box-shadow: 0 0 0 0 #aaaaff;
  }
  100% {
    box-shadow: 2px 2px 10px 0 #aaaaff;
  }
}

@-moz-keyframes myan5 {
  0% {
    box-shadow: 0 0 0 0 #aaaaff;
  }
  90% {
    box-shadow: 0 0 0 0 #aaaaff;
  }
  100% {
    box-shadow: 2px 2px 10px 0 #aaaaff;
  }
}

@-o-keyframes myan5 {
  0% {
    box-shadow: 0 0 0 0 #aaaaff;
  }
  90% {
    box-shadow: 0 0 0 0 #aaaaff;
  }
  100% {
    box-shadow: 2px 2px 10px 0 #aaaaff;
  }
}

@keyframes myan5 {
  0% {
    box-shadow: 0 0 0 0 #aaaaff;
  }
  90% {
    box-shadow: 0 0 0 0 #aaaaff;
  }
  100% {
    box-shadow: 2px 2px 10px 0 #aaaaff;
  }
}
              
            
!

JS

              
                
              
            
!
999px

Console