LOADING...

Preview

Pen ID
Unlock Campus Themeforest adv

 

Code

User menu button

star envelope cog user
CSS
* {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  display: block;
  margin: auto;
}

.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  fill: currentColor;
}

body {
  font-family: 'Open Sans', sans-serif;
  background: #fff;
  font-size: 16px;
}

.pen-wrapper {
  display: flex;
  width: 100%;
  height: calc(100vh - 160px);
  min-height: 500px;
  justify-content: center;
  align-items: center;
}
@media screen and (max-height: 800px) {
  .pen-wrapper {
    padding-top: 40px;
    align-items: flex-start;
  }
}

.pen-title {
  text-align: center;
  font-size: 20px;
  line-height: 40px;
  padding: 20px 0;
}

.nav {
  position: relative;
  width: 150px;
  height: 150px;
}

.nav__inner {
  position: absolute;
  top: 0;
  left: 0;
  width: 150px;
  height: 150px;
  padding: 15px;
  border-radius: 75px;
  overflow: hidden;
  background: #fff;
  box-shadow: inset 0px 0px 12px rgba(0, 0, 0, 0.15);
  transition: height .3s ease-in;
}
input:checked + .menu-button + .nav__inner {
  height: 400px;
}

.nav__avatar {
  position: relative;
  overflow: hidden;
}
.nav__avatar, .nav__avatar img {
  border-radius: 50%;
}

.menu-button__input {
  display: none;
}

.menu-button {
  position: absolute;
  right: 0;
  top: 0;
  z-index: 2;
  display: block;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  box-shadow: inset 0px 0px 11px 0px white;
  background: linear-gradient(#ff4184 0%, #ff005a 100%, #ff005a 100%);
  transform: scale(0.1);
  opacity: 0;
  transition: transform .3s ease-in, opacity .3s ease-in;
  cursor: pointer;
}
.touch .menu-button, .nav:hover .menu-button, input:checked + .menu-button {
  transform: scale(1);
  opacity: 1;
}

.menu-button__icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 25px;
  height: 20px;
  transform: translate3d(-50%, -50%, 0);
}

.menu-button__icon-strip {
  top: 50%;
  margin-top: -2px;
}
.menu-button__icon-strip, .menu-button__icon-strip:before, .menu-button__icon-strip:after {
  position: absolute;
  left: 0;
  display: block;
  width: 100%;
  height: 4px;
  border-radius: 4px;
  background-color: #fff;
  transition: transform .3s ease, top .3s ease, bottom .3s ease, opacity .3s ease;
}
.menu-button__icon-strip:before, .menu-button__icon-strip:after {
  content: '';
  transform-origin: center;
}
.menu-button__icon-strip:before {
  top: -7px;
  margin-top: -2px;
}
.menu-button__icon-strip:after {
  bottom: -7px;
  margin-bottom: -2px;
}
input:checked + .menu-button .menu-button__icon-strip {
  background-color: rgba(255, 255, 255, 0);
}
input:checked + .menu-button .menu-button__icon-strip:before {
  top: 50%;
  transform: rotate(45deg);
}
input:checked + .menu-button .menu-button__icon-strip:after {
  bottom: 50%;
  transform: rotate(-45deg);
}

.nav-list {
  width: 30px;
  margin: auto;
  margin-bottom: 20px;
}

.nav-list__item {
  margin-top: 20px;
  opacity: 0;
  text-align: center;
  transition: opacity .3s ease-in;
}
input:checked + .menu-button + .nav__inner .nav-list__item {
  opacity: 1;
}
input:checked + .menu-button + .nav__inner .nav-list__item:nth-child(1) {
  transition-delay: 0.1s;
}
input:checked + .menu-button + .nav__inner .nav-list__item:nth-child(2) {
  transition-delay: 0.2s;
}
input:checked + .menu-button + .nav__inner .nav-list__item:nth-child(3) {
  transition-delay: 0.3s;
}
input:checked + .menu-button + .nav__inner .nav-list__item:nth-child(4) {
  transition-delay: 0.4s;
}

.nav-list__url {
  color: #6d6e76;
  transition: color .3s ease;
}
.nav-list__url:hover {
  color: #ff0b61;
}

.nav-list__icon {
  font-size: 30px;
}
JS
// Check it out on Dribbble  https://dribbble.com/shots/2534167-User-profile-button

Description

You can find this user profile button on our dribble account https://dribbble.com/shots/2534167-User-profile-button
Term
Mon, 11/27/2017 - 21:19

Related Codes

Pen ID
Pen ID
Pen ID
Square Adv