SOURCE

console 命令行工具 X clear

                    
>
console
var img = document.getElementById("img");
var content = document.getElementById("content");
var backer = document.getElementById("backer");
var buttons = document.getElementById("buttons");
var helper = document.getElementById("helper");
var close = document.getElementById("close");


img.addEventListener("mouseover", function() {
      helper.classList.add("active");
})

close.addEventListener("click", function() {
  img.classList.remove("active");
  img.classList.add("inactive");
  content.classList.remove("active");
  backer.classList.remove("active");
  buttons.classList.remove("active");
  close.classList.remove("active");
  
  var texts = document.querySelectorAll(".content p");

  [].forEach.call(texts, function(text) {
    text.classList.remove("active");
  });
  
})

img.addEventListener("click", function(){
  img.classList.add("active");
  img.classList.remove("inactive");
  content.classList.add("active");
  backer.classList.add("active");
  buttons.classList.add("active");
  close.classList.add("active");
  
  var texts = document.querySelectorAll(".content p");

  [].forEach.call(texts, function(text) {
    text.classList.add("active");
  });
  
})
<div class='background'>
  <div class='main'>
    <div class='helper' id='helper'><p>Click on image to view profile</p></div>
    <div class='img inactive' id='img'>
      <div class='overlay'><p>View Profile</p></div>
    </div>
    <div class='close' id='close'>
      X
    </div>
    <div class='content' id='content'><p class='d1'>Scott Hutcheson</p><p class='d2'>Product Designer</p><p class='d3'>Glasgow, UK</p><div class='buttons' id='buttons'>
        <a href='https://github.com/smhutch' target='_blank'>
          <img src='https://packagecontrol.io/readmes/img/a59a44b1a383ad42e195fa34f0ad2756f46c77a2.png'>
        </a>
        <a href='https://twitter.com/SMHutcheson' target='_blank'>
          <img src='http://www.coinfestuk.org/img/twit.png'>
        </a>
      </div>
      <div class='backer' id='backer'></div>
    </div>
  </div>
</div>
*{
    transition:0.4s ease all;
  font-family:"Helvetica Neue";
    transition-delay:0s;
}

.active{
  &.img {
    border-bottom-left-radius:0px;
  }
  
  &.helper{-webkit-transform: translate(0px,100px);}
  
  &.close {
      cursor:pointer;
      transition-delay:1.2s;
      visibility:visible;
      opacity:1;
  }
  
  &.buttons{
    transition-delay:0.8s;
  }
  
  &.backer {
    transition-delay:0.4s;}
    
   &.d1{transition-delay:0.8s;}
   &.d2{transition-delay:0.6s;}
   &.d3{transition-delay:0.4s;}
}

div{
box-sizing:border-box}

.close {
transform: translate(-10px, -12px);
    position: absolute;
    font-weight: 100;
    width: 20px;
    background-color: white;
    height: 20px;
    text-align: center;
    border-radius: 50%;
    color: #A8A8A8;
    font-size: 0.5em;
    padding-top: 5px;
    box-shadow: 0px 1px 2px;
  z-index:1;
  opacity:0;
  visibility:hidden;
}

.background {
  position:fixed;
  top:0;
  right:0;
  left:0;
  bottom:0;
  background: #225faa;
  background: linear-gradient(135deg,      #f5f5f5 0%,#eeeeee 100%);
  overflow:scroll;
}

.main {
  width:300px;
  margin:50px auto;
  height:400px;
  position:relative;
}

.img {
  overflow:hidden;
  background: url("https://pbs.twimg.com/profile_banners/225975238/1458378189/1500x500") 55% center;
    background-size: cover;
    background-repeat: no-repeat;
    height: 300px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.5);
  margin:0px auto;
  z-index:1;
  width:300px;
  height:300px;
  border-radius:50%;
  position:relative;
}

.img.inactive:hover {
-webkit-transform:scale3d(1.05,1.05,1.3) translate(0px,-10px);
   box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.5);
}

.img.inactive:hover .overlay {
   opacity:1;
  
  p {
    opacity:1;
    margin-top:145px;
  }
  }

.helper {
  background-color:white;
  box-shadow:0px 2px 4px rgba(0,0,0,0.5);
  border-radius:5px;
  text-align:center;
  padding:5px 10px;
  display:table;
  margin:10px auto;
  
  p{
      font-family:'courier';
      font-size:0.6em;
  }
}

.content{
  width:100%;
  position:relative;
  
  .buttons {
    position:absolute;
    right:10px;
    top:24px;
    opacity:0;
    
    a {
      text-decoration:none;
    }
    
     &.active {
       opacity:1;
      }
    
    img {
      display:inline-block;
      width:20px;
      opacity:0.5;
      
      &:hover{
         opacity:1;
       }
      
      &:last-of-type{
        padding-left:10px;
      }
    }
  }
  
  .backer {
    position:absolute;
    width:1px;
    left:0;
    top:0;
    bottom:0;
    background-color:#ccc;
    -webkit-transform: translate(0px,-100px);
    opacity:0;
    
      &.active {
       opacity:1;
            -webkit-transform: translate(0px,0px);
      }
  }
  
  p{
    padding:5px 10px;
      opacity:0;
      visibility:hidden;
    margin:0;
  
    &.active {
      -webkit-transform: translate(0px,0px);
      opacity:1;
      visibility:visible;
    }
  }
    
    .d1 {
      padding-top:20px;
       -webkit-transform: translate(0px,-30px);
      font-weight:800;
    }
    
   .d2 {
             -webkit-transform: translate(0px,-65px);
      font-weight:300;
    }
    
    .d3{
      -webkit-transform: translate(0px,-100px);
            padding-bottom:20px;
      font-family:courier;
      font-size:0.8em;
    }
}

.overlay {
  background-color:rgba(0,0,0,0.5);
  position:absolute;
  right:0;
  left:0;
  bottom:0;
  top:0;
  opacity:0;
  border-radius:50%;
  
  p{
    text-align:center;
    margin-top:160px;
    color:white;
    text-shadow:0 1px 2px black;
    opacity:0;
    text-transform:uppercase;
    letter-spacing:0.4em;
    font-weight:100;
    font-size:1.2em;
  }
}

.signature {
  background-color:rgba(255,255,255,0.9);
  width:150px;
  padding:20px;
  float:left;
  margin:0px 20px;
  opacity:0.2;
  transition:0.4s ease all;
  box-shadow:0px 2px 4px rgba(0,0,0,1);
  position:relative;
  
  &:hover {opacity:1;}
  
  img {width:100px;}
  
  p {margin:0;}
 
  p span {
    font-family:"Courier", Monospace;
    font-size:0.8em;
  }
}