<div>1</div>
<div class="o-hide"><p>2</p></div>
<div>3</div>
div {
  padding: 60px;
  width: 60px;
  font-size: 3em;
  background: pink;
  text-align: center;
  margin: 1%;
  display: inline-block;
  float: left;
  cursor: pointer;
  font-family: 'Lato';
}

.o-hide {
  visibility: hidden;
  transition: all ease 0.8s;
}

.o-hide:hover {
  visibility: visible;
}

.o-hide p {
  visibility: visible;
  margin: 0;
  padding: 0;
}
var oHide = document.querySelector(".o-hide");
var oHideP = document.querySelector(".o-hide p");
var count = oHideP.innerHTML;

oHide.addEventListener("click", function(){
    count++;
    oHideP.innerHTML = count;
});

External CSS

  1. https://fonts.googleapis.com/css?family=Lato

External JavaScript

This Pen doesn't use any external JavaScript resources.