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. 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

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

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

              
                <!--HOVER EFFECT 1-->
<p2> HOVER<strong>EFFECT 1</strong> </p2>
<div id=image_01>
  <div id=image_01_hover><p1> THE</p1></div>
    <div id=image_01_hover02><p1><strong>LEAF</strong></p1></div>
  <div id=image_01_hover03> </div>
</div>

<!--HOVER EFFECT 2-->
<p3> HOVER<strong>EFFECT 2 </strong> </p3>
<div id=image_02>
  <div id=image_02_hover><p1></p1></div>
    <div id=image_02_hover02><p1><strong></strong></p1></div>
  <div id=image_02_hover03> </div>
  <div id=hearticon onclick="dontheart_it ()" ondblclick="heart_it ()"> </div>
  <div id=usericon onclick="dontfollow ()" ondblclick="follow ()"> </div>
  <div id=shareicon> </div>
  <div id=share><strong>T</strong>WITTER<strong> F</strong>ACEBOOK</div>
  <div id=infoicon></div>
  <div id=info>THE<strong>WOOD</strong> </div>
</div>

  <!--HOVER EFFECT 3-->
<p4> HOVER<strong>EFFECT 3</strong>
  <div id=image_03> 
    
 <!--HOVER EFFECT 4-->
              
            
!

CSS

              
                @import url(https://fonts.googleapis.com/css?family=Raleway:400,200,100,300,500,600,700,800,900);

body,html{
  background-color:#2f3238;
  text-align:center;
}

p2{
  color:#EEEEEE;
  font-family: 'Raleway', sans-serif;
  padding: 30px;
  font-weight: 100;
  font-size: 30px;
  position:relative;
  top:20px;
}
p3{
  color:#EEEEEE;
  font-family: 'Raleway', sans-serif;
  padding: 30px;
  font-weight: 100;
  font-size: 30px;
  position:relative;
  top:80px;
}
p4{
  color:#EEEEEE;
  font-family: 'Raleway', sans-serif;
  padding: 30px;
  font-weight: 100;
  font-size: 30px;
  position:relative;
  top:150px;
}

p5{
  position:relative;
  top:140px;
  left:10px;
}
<!-- /* Bild-1/ Image-1 */-->
#image_01{
  background-image: url("https://ununsplash.imgix.net/photo-1422022098106-b3a9edc463af?fit=crop&fm=jpg&h=700&q=75&w=1050");
  background-size:470px;
  width:450px;
  height:310px;
  margin:auto;
  text-align:center;
  transition: all 0.4s;
  position: relative;
  top:40px;
}
<!-- /* Hier kannst du das Bild an sich beim Drüberfahren ändern-->
#image_01:hover{
  opacity:1.0;
  background-size:530px;
}
<!-- /* Hier kannst du entscheiden wie weiß das Bild beim Drüberfahren wird */-->
#image_01:hover #image_01_hover03{
  opacity:0.2;
}
<!-- /* Hier kommt das "THE" eingeflogen */-->
#image_01:hover #image_01_hover{
  opacity:1.0;
   top:120px;
  left:-40px;
}
<!-- /* Hier kommt das "LEAF" eingeflogen */-->
#image_01:hover #image_01_hover02{
top:66px;
  left:40px;
  opacity: 1.0;
}
<!-- /* Position von Text "THE" und "CAR" */-->
p1{
  position: relative;
  top:5px;
  left:5px;
}
<!-- /* Position,Schriftart,Schriftgröße usw. von "THE" vor dem Drüberfahren über "#image_01" */-->
#image_01_hover{
  width:77px;
  height: 50px;
  background-color:transparent;
  border-left:2px solid #fff;
  border-top:2px solid #fff;
  border-bottom:2px solid #fff;
  border-right:0px solid #fff;
  position: relative;
  top:120px;
  left:-170px;
  margin:auto;
  opacity: 0.0;
  transition: all 0.4s;
  color:#fff;
  font-family: 'Raleway', sans-serif;
  font-size:35px;
  font-weight:200;
  text-align:center;
}

<!-- /* Position,Schriftart,Schriftgröße usw. von "LEAF" vor dem Drüberfahren über "#image_01" */-->
#image_01_hover02{
  width:110px;
  height: 50px;
  background-color:transparent;
  border-left:0px solid #fff;
  border-top:2px solid #fff;
  border-bottom:2px solid #fff;
  border-right:2px solid #fff;
  position: relative;
  top:66px;
  left:160px;
  margin:auto;
  opacity: 0.0;
  transition: all 0.4s;
  color:#fff;
  font-family: 'Raleway', sans-serif;
  font-size:35px;
  font-weight:200;
  text-align:center;
}

<!-- /* Hier kannst du die Farbe wählen, die erst sichtbar beim Drüberfahren des Bildes wird */-->
#image_01_hover03{
  background-color:#fff;
  width:450px;
  height:310px;
  margin:auto;
  text-align:center;
  transition: all 0.4s;
  position: relative;
  top:-108px;
  opacity:0.0;
}

<!-- /* Bild-2/ Image 2 */-->
#image_02{
  background: url("https://ununsplash.imgix.net/uploads/141319062591093cefc09/ad50c1f0?fit=crop&fm=jpg&h=725&q=75&w=1050");
  background-size:470px;
  width:450px;
  height:310px;
  margin:auto;
  text-align:center;
  transition: all 0.4s;
  position: relative;
  top:110px;
}
<!-- /* Ranzoomen des Bildes beim Drüberfahren mit der Maus*/-->
#image_02:hover{
  opacity:1.0;
  background-size:680px;
}
<!-- /* Verdunklung der Farbe des Bildes */-->
#image_02:hover #image_02_hover03{
  opacity:0.4;
}
<!-- /* Erscheinen der Sidebar beim Drüberfahren über Bildes*/-->
#image_02:hover #image_02_hover{
  opacity:1.0;
  left:0px;
}
<!-- /* Erscheinen des Icons (Herz) */-->
#image_02:hover #hearticon{
  opacity:1.0;
  left:410px;
}
<!-- /* Erscheinen des Icons (Benutzer) */-->
#image_02:hover #usericon{
  opacity:1.0;
  left:410px;
}
<!-- /* Erscheinen des Icons (Teilen) */-->
#image_02:hover #shareicon{
  opacity:1.0;
  left:410px;
}
<!-- /* Erscheinen des Icons (Herz) */-->
#image_02:hover #infoicon{
  opacity:1.0;
  left:410px;
}
<!-- /* Farbe die beim Drüberfahren des Bildes sich dazumischt*/-->
#image_02_hover03{
  background-color:#000;
  width:400px;
  height:310px;
  text-align:center;
  transition: all 0.4s;
  position: relative;
  top:-310px;
  opacity:0.0;
}
<!-- /* Die Sidebar die beim Drüberfahren des Bildes erscheint */-->
#image_02_hover{
  background-color:transparent;
 width:400px;
  height:310px;
  opacity:1.0;
  border-right:50px solid #fff;
  opacity:0.0;
  position: relative;
  left:30px;
  transition: all 0.4s;
}
<!-- /* Icon (Herz) */-->
#hearticon{
  background: url("https://cdn4.iconfinder.com/data/icons/e-commerce-icon-set/48/Like-48.png");
  width:30px;
  height:30px;
  background-size:cover;
  position:relative;
  top:-370px;
  left:440px;
  opacity:0.0;
  transition: all 0.4s;
  
}
<!-- /* Icon (Benutzer) */-->
#usericon{
  background: url("https://cdn4.iconfinder.com/data/icons/e-commerce-icon-set/48/Username-48.png"); 
  width:30px;
  height:30px;
  background-size:cover;
  position:relative;
  top:-450px;
  left:440px;
  opacity:0.0;
  transition: all 0.4s;
}
<!-- /* Icon (Teilen) */-->
#shareicon{
  background: url("https://cdn4.iconfinder.com/data/icons/e-commerce-icon-set/48/Share-48.png"); 
  width:30px;
  height:30px;
  background-size:cover;
  position:relative;
  top:-530px;
  left:440px;
  opacity:0.0;
  transition: all 0.4s;  
}
<!-- /* Die Veränderung des Icons (Teilen) beim Drüberfahren */-->
#shareicon:hover{
  background:url("https://cdn4.iconfinder.com/data/icons/e-commerce-icon-set/48/Share_2-48.png");
  background-size:cover;
}
<!-- /* Erscheinen der Teil-Möglichkeiten */-->
#shareicon:hover+ #share{
  opacity:1.0;
}
<!-- /* Teilmöglichkeiten */-->
#share{
  background-color:#fff;
  width:220px;
  height:22px;
  position:relative;
  top:-565px;
  left:150px;
  border-radius:20px;
  color:#000;
  font-family: 'Raleway', sans-serif;
  font-size:20px;
  font-weight:200;
  padding:10px;
  opacity:1.0;
  transition: all 0.4s;
  opacity:0.0;
}
<!-- /* Icon (Info) */-->
#infoicon{
  background: url("https://cdn4.iconfinder.com/data/icons/e-commerce-icon-set/48/Info-48.png");
  width:30px;
  height:30px;
  background-size:cover;
  position:relative;
  top:-650px;
  left:440px;
  opacity:0.0;
  transition: all 0.4s;  
}
<!-- /* Veränderung des Icons (Info) beim Drüberfahren */-->
#infoicon:hover{
  background: url("https://cdn4.iconfinder.com/data/icons/e-commerce-icon-set/48/Info_2-48.png");
  width:30px;
  height:30px;
  background-size:cover;
}
<!-- /* Erscheines des Bildtitels beim Drüberfahren des Icons (#infoicon) */-->
#infoicon:hover+ #info{
  opacity: 1.0;
}
<!-- /* Info/Bildtitel */-->
#info{
  background-color:#fff;
  width:120px;
  height:22px;
  position:relative;
  top:-686px;
  left:250px;
  border-radius:20px;
  color:#000;
  font-family: 'Raleway', sans-serif;
  font-size:20px;
  font-weight:200;
  padding:10px;
  opacity:0.0;
  transition: all 0.4s;
}

<!-- /* Bild 3/ Image 3 */-->

#image_03{
  background-image: url("https://ununsplash.imgix.net/uploads/1413399939678471ea070/2c0343f7?fit=crop&fm=jpg&h=725&q=75&w=1050");
  background-size:470px;
  width:450px;
  height:310px;
  margin:auto;
  text-align:center;
  transition: all 0.4s;
  position: relative;
  top:40px;
  border:0px solid #fff;
}

#image_03:hover{
  ;
}



              
            
!

JS

              
                function heart_it (){
  "use-strict";
  document.getElementById("hearticon").style.backgroundImage = "url('https://cdn4.iconfinder.com/data/icons/e-commerce-icon-set/48/Like_2-48.png')";
}

function dontheart_it (){
  "use-strict";
  document.getElementById("hearticon").style.backgroundImage = "url('https://cdn4.iconfinder.com/data/icons/e-commerce-icon-set/48/Like-48.png')";
}
function follow (){
  "use-strict";
  document.getElementById("usericon").style.backgroundImage = "url('https://cdn4.iconfinder.com/data/icons/e-commerce-icon-set/48/Username_2-32.png')";
}

function dontfollow (){
  "use-strict";
  document.getElementById("usericon").style.backgroundImage = "url('https://cdn4.iconfinder.com/data/icons/e-commerce-icon-set/48/Username-48.png')";
}



              
            
!
999px

Console