123

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <div id="container">Hover me !</div>
<div id="hello">Hello !</div>
<div id="CSS">   <span> P </span>
                 <span> u </span>
                 <span> r </span>
                 <span> e </span><br/>                 
                 <span> C </span>
                 <span> S </span> 
                 <span> S </span> 
</div>
<div id="funny"> This is Funny !</div>
<div id="transition">   <span> T </span>
                 <span> r </span>
                 <span> a </span>
                 <span> n </span>                
                 <span> s </span>
                 <span> i </span> 
                 <span> t </span> 
                 <span> i </span> 
                 <span> o </span> 
                 <span> n </span> 
</div>
            
          
!
            
              html{
   background:
  linear-gradient(27deg, #151515 5px, transparent 5px) 0 5px,
  linear-gradient(207deg, #151515 5px, transparent 5px) 10px 0px,
  linear-gradient(27deg, #222 5px, transparent 5px) 0px 10px,
  linear-gradient(207deg, #222 5px, transparent 5px) 10px 5px,
  linear-gradient(90deg, #1b1b1b 10px, transparent 10px),
  linear-gradient(#1d1d1d 25%, #1a1a1a 25%, #1a1a1a 50%, transparent 50%, transparent 75%, #242424 75%, #242424);
  background-color: #131313;
  background-size: 20px 20px;
}
span { display: block; }

#container:hover{
  height:100px;
  width:400px;
  margin-left:-200px;
  margin-top:-50px;
  line-height:100px;
  font-size : 400%;
}
#container:hover~#hello {
   opacity:0.7;
   visibility:visible;
   margin-top:150px;
   margin-left:150px;
}
#container:hover~#CSS {
   right:150px;
   margin-top:150px;
   opacity:0.7;
   visibility:visible;
}
#container:hover~#funny {
   right:150px;
   bottom:150px;
   opacity:0.7;
   visibility:visible;
}
#container:hover~#transition {
   margin-left:150px;
   bottom:150px;
   opacity:0.7;
   visibility:visible;
}
#transition{
  -webkit-transition: all 1s;
  -moz-transition: all 1s;
  -o-transition: all 1s;
  -ms-transition: all 1s;
  transition: all 1s;  
  
   -webkit-transition-delay: 500ms;
  -moz-transition-delay: 500ms; 
  -ms-transition-delay: 500ms; 
  -o-transition-delay: 500ms;
  transition-delay: 500ms;
  
  -webkit-transition-timing-function: cubic-bezier(1,0.5,.53,1.5);
  -moz-transition-timing-function: cubic-bezier(1,0.5,.53,1.5);
  -o-transition-timing-function: cubic-bezier(1,0.5,.53,1.5);
  -ms-transition-timing-function: cubic-bezier(1,0.5,.53,1.5);
  transition-timing-function: cubic-bezier(1,-0.5,.53,1.5);
  
   opacity:0;
   visibility:hidden;
    
   bottom:20px;
   text-align:center;
   color:white;
   position:absolute;
   font-size:200%;
   font-style:italic;
   line-height:40px;
   height:400px;
   width:70px;
   font-family: "Avant Garde", Avantgarde, "Century Gothic", CenturyGothic, "AppleGothic", sans-serif;
  
    -moz-border-radius:10px 0;
    -webkit-border-radius:10px 0;
     border-radius:10px 0;
  
  
  background: rgb(96,108,136); /* Old browsers */
  background: -moz-linear-gradient(45deg,  rgba(96,108,136,1) 0%, rgba(63,76,107,1) 100%); /* FF3.6+ */
  background: -webkit-gradient(linear, left bottom, right top, color-stop(0%,rgba(96,108,136,1)), color-stop(100%,rgba(63,76,107,1))); /* Chrome,Safari4+ */
  background: -webkit-linear-gradient(45deg,  rgba(96,108,136,1) 0%,rgba(63,76,107,1) 100%); /* Chrome10+,Safari5.1+ */
  background: -o-linear-gradient(45deg,  rgba(96,108,136,1) 0%,rgba(63,76,107,1) 100%); /* Opera 11.10+ */
  background: -ms-linear-gradient(45deg,  rgba(96,108,136,1) 0%,rgba(63,76,107,1) 100%); /* IE10+ */
  background: linear-gradient(45deg,  rgba(96,108,136,1) 0%,rgba(63,76,107,1) 100%); /* W3C */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#606c88', endColorstr='#3f4c6b',GradientType=1 ); /* IE6-9 fallback on horizontal gradient */
}
#funny{  
  position:absolute;
  bottom:20px;
  right:20px;
  font-family: "Avant Garde", Avantgarde, "Century Gothic", CenturyGothic, "AppleGothic", sans-serif;
  font-size : 200%;
  line-height:70px;
  text-align:center;
  color:white;
  font-style : italic;
  -moz-border-radius:10px 0;
  -webkit-border-radius:10px 0;
  border-radius:10px 0;
  height:70px;
  width:400px;
  background: rgb(96,108,136); /* Old browsers */
  background: -moz-linear-gradient(45deg,  rgba(96,108,136,1) 0%, rgba(63,76,107,1) 100%); /* FF3.6+ */
  background: -webkit-gradient(linear, left bottom, right top, color-stop(0%,rgba(96,108,136,1)), color-stop(100%,rgba(63,76,107,1))); /* Chrome,Safari4+ */
  background: -webkit-linear-gradient(45deg,  rgba(96,108,136,1) 0%,rgba(63,76,107,1) 100%); /* Chrome10+,Safari5.1+ */
  background: -o-linear-gradient(45deg,  rgba(96,108,136,1) 0%,rgba(63,76,107,1) 100%); /* Opera 11.10+ */
  background: -ms-linear-gradient(45deg,  rgba(96,108,136,1) 0%,rgba(63,76,107,1) 100%); /* IE10+ */
  background: linear-gradient(45deg,  rgba(96,108,136,1) 0%,rgba(63,76,107,1) 100%); /* W3C */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#606c88', endColorstr='#3f4c6b',GradientType=1 ); /* IE6-9 fallback on horizontal gradient */


  opacity:0;
  visibility:hidden;
  
  -webkit-transition: all 1s;
  -moz-transition: all 1s;
  -o-transition: all 1s;
  -ms-transition: all 1s;
  transition: all 1s;  
  
  -webkit-transition-timing-function: cubic-bezier(1,-0.5,.53,1.5);
  -moz-transition-timing-function: cubic-bezier(1,-0.5,.53,1.5);
  -o-transition-timing-function: cubic-bezier(1,-0.5,.53,1.5);
  -ms-transition-timing-function: cubic-bezier(1,-0.5,.53,1.5);
  transition-timing-function: cubic-bezier(1,-0.5,.53,1.5);
}
#CSS{  
  
  -webkit-transition: all 1s;
  -moz-transition: all 1s;
  -o-transition: all 1s;
  -ms-transition: all 1s;
  transition: all 1s;  
  
   -webkit-transition-delay: 500ms;
  -moz-transition-delay: 500ms; 
  -ms-transition-delay: 500ms; 
  -o-transition-delay: 500ms;
  transition-delay: 500ms;
  
  -webkit-transition-timing-function: cubic-bezier(1,0.5,.53,1.5);
  -moz-transition-timing-function: cubic-bezier(1,0.5,.53,1.5);
  -o-transition-timing-function: cubic-bezier(1,0.5,.53,1.5);
  -ms-transition-timing-function: cubic-bezier(1,0.5,.53,1.5);
  transition-timing-function: cubic-bezier(1,-0.5,.53,1.5);
  
   opacity:0;
   visibility:hidden;
    
   right:20px;
   text-align:center;
   color:white;
   position:absolute;
   font-size:200%;
   font-style:italic;
   line-height:50px;
   height:400px;
   width:70px;
   font-family: "Avant Garde", Avantgarde, "Century Gothic", CenturyGothic, "AppleGothic", sans-serif;
  
    -moz-border-radius:10px 0;
    -webkit-border-radius:10px 0;
     border-radius:10px 0;
  
  
  background: rgb(96,108,136); /* Old browsers */
  background: -moz-linear-gradient(45deg,  rgba(96,108,136,1) 0%, rgba(63,76,107,1) 100%); /* FF3.6+ */
  background: -webkit-gradient(linear, left bottom, right top, color-stop(0%,rgba(96,108,136,1)), color-stop(100%,rgba(63,76,107,1))); /* Chrome,Safari4+ */
  background: -webkit-linear-gradient(45deg,  rgba(96,108,136,1) 0%,rgba(63,76,107,1) 100%); /* Chrome10+,Safari5.1+ */
  background: -o-linear-gradient(45deg,  rgba(96,108,136,1) 0%,rgba(63,76,107,1) 100%); /* Opera 11.10+ */
  background: -ms-linear-gradient(45deg,  rgba(96,108,136,1) 0%,rgba(63,76,107,1) 100%); /* IE10+ */
  background: linear-gradient(45deg,  rgba(96,108,136,1) 0%,rgba(63,76,107,1) 100%); /* W3C */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#606c88', endColorstr='#3f4c6b',GradientType=1 ); /* IE6-9 fallback on horizontal gradient */
  
  
}
#hello{

  position:absolute;
  font-family: "Avant Garde", Avantgarde, "Century Gothic", CenturyGothic, "AppleGothic", sans-serif;
  font-size : 200%;
  line-height:70px;
  text-align:center;
  color:white;
  font-style : italic;
  -moz-border-radius:10px 0;
  -webkit-border-radius:10px 0;
  border-radius:10px 0;
  height:70px;
  width:400px;
  background: rgb(96,108,136); /* Old browsers */
  background: -moz-linear-gradient(45deg,  rgba(96,108,136,1) 0%, rgba(63,76,107,1) 100%); /* FF3.6+ */
  background: -webkit-gradient(linear, left bottom, right top, color-stop(0%,rgba(96,108,136,1)), color-stop(100%,rgba(63,76,107,1))); /* Chrome,Safari4+ */
  background: -webkit-linear-gradient(45deg,  rgba(96,108,136,1) 0%,rgba(63,76,107,1) 100%); /* Chrome10+,Safari5.1+ */
  background: -o-linear-gradient(45deg,  rgba(96,108,136,1) 0%,rgba(63,76,107,1) 100%); /* Opera 11.10+ */
  background: -ms-linear-gradient(45deg,  rgba(96,108,136,1) 0%,rgba(63,76,107,1) 100%); /* IE10+ */
  background: linear-gradient(45deg,  rgba(96,108,136,1) 0%,rgba(63,76,107,1) 100%); /* W3C */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#606c88', endColorstr='#3f4c6b',GradientType=1 ); /* IE6-9 fallback on horizontal gradient */

  visibility:hidden;
  opacity:0;
  
  -webkit-transition: all 1s;
  -moz-transition: all 1s;
  -o-transition: all 1s;
  -ms-transition: all 1s;
  transition: all 1s;  
  
  -webkit-transition-timing-function: cubic-bezier(1,0.5,.53,1);
  -moz-transition-timing-function: cubic-bezier(1,0.5,.53,1);
  -o-transition-timing-function: cubic-bezier(1,0.5,.53,1);
  -ms-transition-timing-function: cubic-bezier(1,0.5,.53,1);
  transition-timing-function: cubic-bezier(1,-0.5,.53,1.5);
}
#container{
  -webkit-transition: all 0.4s ease-in-out;
  -moz-transition: all 0.4s ease-in-out;
  -o-transition: all 0.4s ease-in-out;
  -ms-transition: all 0.4s ease-in-out;
  transition: all 0.4s ease-in-out; 
  font-style : italic;
  font-family: "Avant Garde", Avantgarde, "Century Gothic", CenturyGothic, "AppleGothic", sans-serif;
  font-size : 200%;
  color:white;
  opacity:0.7;
  top:50%;
  left:50%;
  margin-left:-100px;
  margin-top:-25px;
  height:50px;
  width:200px;
  position:absolute;
  background: #1e5799; /* Old browsers */
  background: -moz-linear-gradient(45deg,  #1e5799 59%, #2989d8 100%, #7db9e8 100%); /* FF3.6+ */
  background: -webkit-gradient(linear, left bottom, right top, color-stop(59%,#1e5799), color-stop(100%,#2989d8), color-stop(100%,#7db9e8)); /* Chrome,Safari4+ */
  background: -webkit-linear-gradient(45deg,  #1e5799 59%,#2989d8 100%,#7db9e8 100%); /* Chrome10+,Safari5.1+ */
  background: -o-linear-gradient(45deg,  #1e5799 59%,#2989d8 100%,#7db9e8 100%); /* Opera 11.10+ */
  background: -ms-linear-gradient(45deg,  #1e5799 59%,#2989d8 100%,#7db9e8 100%); /* IE10+ */
  background: linear-gradient(45deg,  #1e5799 59%,#2989d8 100%,#7db9e8 100%); /* W3C */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#1e5799', endColorstr='#7db9e8',GradientType=1 ); /* IE6-9 fallback on horizontal gradient */
  text-align:center;
  line-height:50px;
  -moz-border-radius:10px 0;
  -webkit-border-radius:10px 0;
  border-radius:10px 0;
}
            
          
!
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.

Console