SOURCE

console 命令行工具 X clear

                    
>
console
<div class="product" data-tilt>
	<div class="imgbox">
		<image src="http://www.cakecounter.com/img/product/prod01.jpg" />
	</div>
	<div class="details">
		<h2>Birthday Cake</br>
			<span>Chokolate</span>
    </h2>
  <div class="price">$100</div>
  
  
  <label>Weight</label>
<ul>
  <li>1/2 pound</li>
  <li>1 pound</li>
  <li>2 pound</li>
  <li>3 pound</li>
  <li>5 pound</li>
</ul>


<a href="http://www.cakecounter.com" target="_blank">Add to Cart</a>
  </div>


</div>
body {
    margin: 0;
    padding: 0;
    font-famaly: sans-serif;
    background: #fafafa;
}

.product {
    position: absolute;
    margin: auto;
    width: 240px;
    height: 340px;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
    border-radius: 5px;
    overflow: hidden;
    margin-top: 50px;
    margin-left: 50px;
}

.product .imgbox {
    box-sizing: border-box;
    height: 100%;
}

.product .imgbox img {
    width: 90%;
    margin: 20px auto 0px;
    display: block;
}

.details {
    position: absolute;
    bottom: -105px;
    width: 100%;
    background: white;
    padding: 10px;
    box-sizing: border-box;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    transition: 0.5s;
}

.product:hover .details {
    bottom: 0px;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.25);
}

.details h2 {
    margin: 0;
    padding: 0;
    font-size: 16px;
    width: 100%;
}

.details h2 span {
    font-size: 12px;
    color: #ccc;
    font-weight: normal;
}

.details .price {
    position: absolute;
    top: 10px;
    right: 20px;
    font-weight: bold;
    color: ff4faf;
    font-size: 20px;
}

label {
    display: block;
    margin-top: 5px;
    font-weight: bold;
    font-size: 14px;
}

ul {
    display: flex;
    margin: 0;
    padding: 0;
}

ul li {
    list-style: none;
    margin: 5px 5px 0;
    font-size: 12px;
    font-weight: normal;
    color#ccc;
}

ul li:first-child {
    margin-left: 0px;
}

ul.colors li {
    width: 16px;
    height: 16px;
}

ul.colors li:nth-child(1) {
    background: #ff0;
}

ul.colors li:nth-child(2) {
    background: #f00;
}

ul.colors li:nth-child(3) {
    background: #f0f;
}

ul.colors li:nth-child(4) {
    background: #0ff;
}

ul.colors li:nth-child(5) {
    background: #00f;
}

a {
    display: block;
    padding: 5px;
    color: #fff;
    margin: 15px 0 0;
    background: #ff4faf;
    text-align: center;
    text-decoration: none;
    transition: .3s;
    cursor: pointer;
}

a:hover {}