LOADING...

Preview

Pen ID
Unlock Campus Themeforest adv

 

Code

Christophe Benoliel Molina

@10tribu

  • 84 pens
  • 71 followers
  • 69 forked
  • 43 lovers
CSS
@import url(https://fonts.googleapis.com/css?family=Karla);
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  height: 100%;
}

body {
  font-family: "HelveticaNeue-Light","Helvetica Neue Light","Helvetica Neue",Helvetica,Arial,"Lucida Grande",sans-serif;
  text-align: center;
  background: -webkit-linear-gradient(225deg, #aed2f7, #f8f0b6);
  background: linear-gradient(-135deg, #aed2f7, #f8f0b6);
  height: 100%;
}

#card {
  position: relative;
  width: 100px;
  margin: 50px auto 0;
  border-radius: 0.5em 0.5em 0 0;
  box-shadow: inset 0 1px 0 white, 0 2px 3px rgba(0, 0, 0, 0.2);
  -webkit-transform: scale(0.5);
          transform: scale(0.5);
  -webkit-transition: all 0.3s ease-in;
  transition: all 0.3s ease-in;
}

#card:hover {
  width: 200px;
  margin: 100px auto 0;
  -webkit-transform: scale(1);
          transform: scale(1);
  box-shadow: inset 0 2px 0 white, 0 5px 10px rgba(0, 0, 0, 0.2);
}

#main {
  width: 100%;
  border: 1px solid #a9bccb;
  border-bottom: none;
  background: -webkit-linear-gradient(#ededed, #cccccc);
  background: linear-gradient(#ededed, #cccccc);
  position: relative;
  padding: 80px 5px 5px 5px;
  -webkit-transition: all 0.3s ease-out;
  transition: all 0.3s ease-out;
  border-radius: 0.5em 0.5em 0 0;
}

#card:hover .main {
  padding: 80px 5px 10px 5px;
}

#main:after,
#main:before {
  content: "";
  width: 10px;
  height: 10px;
  background: #333;
  position: absolute;
  bottom: -4px;
  left: 1px;
  -webkit-transform: rotate(30deg);
          transform: rotate(30deg);
  z-index: -1;
  opacity: 0;
  -webkit-transition: all 0.1s ease-in 0.8s;
  transition: all 0.1s ease-in 0.8s;
}

#main:after {
  -webkit-transform: rotate(-30deg);
          transform: rotate(-30deg);
  left: auto;
  right: 1px;
}

h1 {
  font-weight: normal;
  display: none;
  position: relative;
  color: #312d2a;
  font-size: 10px;
  padding-bottom: 7px;
  margin-top: 20px;
  text-shadow: 0 1px 0 white;
  -webkit-transition: all 0.2s ease-out .2s;
  transition: all 0.2s ease-out .2s;
}

#card:hover h1 {
  margin-top: 0px;
  font-size: 16px;
  display: block;
  -webkit-transition: all 0.8s ease-out .4s;
  transition: all 0.8s ease-out .4s;
}

h2 a {
  color: #746d67;
  position: relative;
  display: block;
  font-size: 12px;
  letter-spacing: 1px;
  font-weight: normal;
  text-decoration: none;
  margin-top: 20px;
}

#card:hover h2 a {
  margin-top: 0px;
}

#img-wrapper img {
  display: block;
  margin: 0 auto;
  margin-top: 7px;
  border-radius: 3px;
}

#img-wrapper {
  position: absolute;
  top: 0px;
  left: 50%;
  margin-left: -48px;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
  width: 96px;
  height: 96px;
  background: #fff;
  border-radius: 5px;
  border: 1px solid rgba(0, 0, 0, 0.3);
  -webkit-transition: all 0.3s ease-in .5s;
  transition: all 0.3s ease-in .5s;
}

#card:hover #img-wrapper {
  top: -30px;
  -webkit-transition: all 0.2s ease-out 0s;
  transition: all 0.2s ease-out 0s;
}

#secondary {
  position: absolute;
  background: url("https://codepen.io/images/classy_fabric.png") #655c53;
  border-radius: 0 0 0.5em 0.5em;
  width: 95%;
  left: 2.5%;
  margin: 0 auto;
  -webkit-transition: all 0.1s ease-in 0s;
  transition: all 0.1s ease-in 0s;
  z-index: -1;
  bottom: 50px;
  opacity: 0;
}

.clearfix:after {
  clear: both;
  content: "";
  display: table;
}

li {
  float: left;
  color: white;
  font-size: 12px;
  width: 50%;
  padding: 1% 0;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
}

li:nth(even) {
  border-right: 1px solid rgba(0, 0, 0, 0.3);
  border-left: 1px solid rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

li:nth(odd) {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  border-right: 1px solid rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.figure {
  font-weight: bold;
  font-size: 25px;
  padding: 3px 0;
  display: block;
}

#card:hover #secondary,
#card #secondary:hover {
  bottom: -90px;
  box-shadow: inset 0 3px 2px rgba(0, 0, 0, 0.3), 0 0 4px rgba(0, 0, 0, 0.4);
  opacity: 1;
  -webkit-transition: all 0.5s ease-out 1s;
  transition: all 0.5s ease-out 1s;
}

#card:hover #main:after,
#card:hover #main:before {
  opacity: 1;
  -webkit-transition: all 0.5s ease-out .8s;
  transition: all 0.5s ease-out .8s;
}

#card:hover #main {
  border: 1px solid #a9bccb;
}
JS
/* Inspired by : http://dribbble.com/shots/246483-User-stats */

Description

A little draft about a CodePen user profile, inspired by Claudiu Cioba's work on Dribbble : http://dribbble.com/shots/246483-User-stats.
Term
Mon, 11/27/2017 - 21:27

Related Codes

Pen ID
Pen ID
Pen ID
Square Adv