LOADING...

Preview

Pen ID
Unlock Campus Themeforest adv

 

Code
CSS
body {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Open Sans', sans-serif;
  background: url("https://static.pexels.com/wp-content/uploads/2014/06/black-and-white-moored-buoy-ocean-1465.jpg") no-repeat center center;
  background-size: 300%;
}
body .btn-cont {
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
}
body .btn-cont .btn {
  border: 1px solid black;
  padding: 15px 41px;
  color: black;
  text-decoration: none;
}
body .btn-cont .btn span {
  position: relative;
  z-index: 1;
  -webkit-transition: all 300ms ease-in;
  transition: all 300ms ease-in;
}
body .btn-cont .btn:hover span {
  opacity: 0;
  visibility: hidden;
}
body .btn-cont .btn:after {
  content: '@eric_grucza';
  position: absolute;
  z-index: 5;
  background-color: black;
  padding: 15px 12px;
  top: -15px;
  left: 1px;
  width: 0%;
  visibility: hidden;
  opacity: 0;
  color: white;
  -webkit-transition: all 300ms ease-out;
  transition: all 300ms ease-out;
}
body .btn-cont .btn:hover:after {
  visibility: visible;
  opacity: 1;
  width: 81%;
}
Host Instantly Drag and Drop Website Builder

 

Description

Button transition with new content and new background color sliding in on hover. Background from http://www.pexels.com as usual.
Term
Mon, 11/27/2017 - 22:06

Related Codes

Pen ID
Pen ID
Pen ID