JSFiddle - React, Tailwind, and code Playground

by Victor

HTML

<div></div>

SCSS

$black : black;
$grey: #444;
$lightgrey: lightgrey;
$midgrey: #666;
$spacegrey: #999;
$black: black;
$bezwidth: 5px;
$shellwidth: 4px;

div {

  position: relative;
  margin: 20px;
  width: 154px;
  height: 300px;
  background: black;
  border-radius: 12px;
  box-shadow:
    -1px -1px 3px 0px rgba(255,255,255,0.5),
    0 0 0 3px $spacegrey,
    1px 1px 0 3px rgba(150,150,150, 0.5),
    inset 2px 5px $bezwidth 0 rgba(150,150,150, 0.5),
    inset 0 20px 0 $bezwidth black,
    inset 0 -25px 0 $bezwidth black;
  background: #555555;
  background: -moz-linear-gradient(-45deg, #555555 0%, #070707 46%, #010101 50%, #060606 53%, #2c2c2c 76%, #202020 87%, #0f0f0f 100%);
  background: -webkit-linear-gradient(-45deg, #555555 0%,#070707 46%,#010101 50%,#060606 53%,#2c2c2c 76%,#202020 87%,#0f0f0f 100%);
  background: linear-gradient(135deg, #555555 0%,#070707 46%,#010101 50%,#060606 53%,#2c2c2c 76%,#202020 87%,#0f0f0f 100%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#555555', endColorstr='#0f0f0f',GradientType=1 );
  transition: all 0.3s ease;
  transform: scale(0.7) rotate(20deg);

  &:hover {

    transform: scale(1) rotate(0deg);
  }
  &:hover:after {

    opacity: 1;
  }

  &:after {

    content: '> slide to unlock';
    position: relative;
    left: ($bezwidth + 1px);
    top: 26px;
    display: block;
    padding-top: 200px;
    width: calc(100% - 12px);
    height: calc(100% - 56px);
    max-height: calc(100% - 55px);
    border-radius: 5px;
    box-sizing: border-box;
    opacity: 0;
    background: url('http://www.loremflickr.com/200/300') center ;
    color: rgba(255,255,255,0.7);
    font-size: 11px;
    text-align: center;
    transition: all 0.3s linear;
    font-family: sans-serif;
    animation: interfade 3s infinite;

  }

  &:before {

    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    display: block;
    margin-left: -10px;
    width: 20px;
    height: 20px;
    background: $grey;
    border-radius:...