css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

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 class="container">
  <div class="mholder fadeEffect">
    <div class="initaltext">
      <h2>Dopey Daisy</h2>
    </div>
    <div class="padhere">
      <h2>Daisy is the best</h2>
    </div>

    <a href="#" title="Full Image">
      <img src="http://www.appsavvy.net/wp-content/uploads/2015/06/daisy.jpg" /></a>

    <div class="mask" style=""></div>
  </div>
  <div class="explanation">
    <h2>This is a simple example of some CSS3 animations.</h2>The basic styling of the component is transitioned through various different effects of varying durations and delays. Notice for example that the delay on the "daisy is the best" text comes in after a delay but then when the mouse hover is removed has no delay in removing itself. 
  </div>
</div>
            
          
!
            
              h2 {
  -webkit-margin-before: 0em;
  -webkit-margin-after: 0em;
  -webkit-margin-start: 0px;
  -webkit-margin-end: 0px;
}

.mholder {
  width: 200px;
  height: 300px;
  margin: 10px;
  float: left;
  border: 5px solid #aaa;
  overflow: hidden;
  position: relative;
  text-align: center;
  box-shadow: 0px 0px 8px #aaa;
  cursor: default;
}

.initaltext {
  background: rgba(55, 55, 55, 0.4);
  top: 5%;
  left: 5%;
  width: 90%;
  height: 35px;
  color: #fff;
  position: absolute;
  z-index: 5;
  opacity: 1;
  -webkit-transition: all 0.3s ease-in;
  -moz-transition: all 0.3s ease-in;
  -o-transition: all 0.3s ease-in;
}

.initaltext h2 {
  margin-bottom: 0px;
  margin-top: 0px;
  font-size: 1.7em;
}

.padhere {
  z-index: 8;
  color: #fff;
  top: 300px;
  
  width:100%;
  height: 30px;
  position: absolute;
  border-left: 5px solid #666;
  background-image: url("http://appsavvy.net/bg.png");
  
  -webkit-transition: all 0.3s ease-in;
  -moz-transition: all 0.3s ease-in;
  -o-transition: all 0.3s ease-in;
  opacity: 1;
  transition-delay: .4s;
}

.padhere h2 {
  white-space: nowrap;
  padding-top:4px;
  position: absolute;
  left:220px;
  text-align: left;
  font-family: georgia;
  font-weight: normal;
  font-style: italic;
  font-size: 18px;
  margin-left: 10px;
  opacity: 1;
  -webkit-transition: all 0.3s ease-in 1s;
  -moz-transition: all 0.3s ease-in 1s;
  -o-transition: all 0.3s ease-in 1s;
  transition-delay: 0s;
}
.fadeEffect:hover .padhere h2 {
  transition-delay: 1.0s;
  left:0px;  
  opacity: 1;
}

.mholder:hover  {
  border: 5px solid #fff;
}

.fadeEffect .mask {
  position: absolute;
  top: 100px;
  left: 50px;
  cursor: pointer;
  border-radius: 50px;
  border-width: 50px;
  display: inline-block;
  height: 100px;
  width: 100px;
  border: 50px solid rgba(0, 0, 0, 0.7);
  box-sizing: border-box;
  z-index: 2;
  opacity: 1;
  visibility: visible;
  transform: scale(4);
  transition: all 0.8s ease-in-out;
}

.fadeEffect img {
  width: 200px;
  height: 300px;
}

.fadeEffect:hover .mask {
  opacity: 0;
  border: 0px solid rgba(0, 0, 0, 0.7);
  visibility: hidden;
}

.fadeEffect:hover .initaltext {
  top: -70px;
}



.fadeEffect:hover .padhere {
  top: 260px;
  transition-delay: .4s;
  transition-duration: 0.3s;
  background-position: 0px 0px;
  opacity: 1;
}

/* some css3 for the tet explanation*/

.container {
  height:245px;
  width: 1000px;
 }

.explanation {
  width: 600px;
  position: static;
  display: block;
  padding: 30px 30px 30px 30px;
  margin-left: 25px;
  margin-top: 15px;
  float:left;
  background: #ccc;
  height:100%;
}

.explanation h2{
  margin-bottom: 15px;
}


            
          
!
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