250x250
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- front-end
- php
- iPhone
- 개발자
- jQuery
- react
- iOS 개발자
- 비전공자
- Animation
- image
- IOS
- 자바스크립트
- 프론트엔드
- button
- MAC
- javascript
- 애니메이션
- css3
- html5
- xcode
- 풀스택
- CSS
- keyframes
- 백엔드
- effect
- 비전공 개발자
- HTML
- SWIFT
- ipad
- hover
Archives
- Today
- Total
비전공자 개발일기
Isometric Cards 본문
728x90
SMALL
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ISOMETRIC CARD</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="container">
<div class="card">
<div class="imgBx">
<img src="startup.png">
<h3>ROCKET</h3>
</div>
<div class="content">
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit.</p>
</div>
</div>
</div>
<div class="container">
<div class="card">
<div class="imgBx">
<img src="sketch.png">
<h3>Design</h3>
</div>
<div class="content">
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit.</p>
</div>
</div>
</div>
<div class="container">
<div class="card">
<div class="imgBx">
<img src="data.png">
<h3>Code</h3>
</div>
<div class="content">
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit.</p>
</div>
</div>
</div>
</body>
</html>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background-color: #f3f3f3;
overflow: hidden;
width: 1200px;
margin: 0 auto;
}
.container {
position: relative;
width: 1050px;
display: flex;
flex-wrap: wrap;
justify-content: space-between;
transform: skewY(-10deg);
}
.container .card {
position: relative;
width: 300px;
height: 400px;
background-color: #fff;
transition: .5s;
}
.container .card:before {
content: '';
position: absolute;
top: -15px;
left: 0;
width: 100%;
height: 15px;
background-color: #00c0f6;
transform-origin: bottom;
transform: skewX(45deg);
transition: .5s;
}
.container .card:after {
content: '';
position: absolute;
top: -15px;
left: -15px;
width: 15px;
height: 50%;
background-color: #00c0f6;
transform-origin: left;
transform: skewY(45deg);
transition: .5s;
border-bottom: 200px solid #d9d9d9;
}
.container .card:hover {
transform: translateY(-40px);
}
.container .card .imgBx {
position: relative;
width: 300px;
height: 200px;
background-color: #00c7ff;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
}
.container .card .imgBx img {
max-width: 100px;
}
.container .card .imgBx h3 {
position: relative;
color: #fff;
margin-top: 10px;
}
.container .card .content {
position: relative;
width: 100%;
height: 200px;
padding: 20px;
color: #777;
background-color: #fff;
text-align: center;
}
.container .card .content:before {
content: '';
position: absolute;
left: 0;
bottom: 0;
width: 100%;
height: 400px;
background:linear-gradient(transparent, transparent, rgba(0, 0, 0, .1));
transform-origin: bottom;
transform: skewX(45deg);
transition: .5s;
pointer-events: none;
z-index: -1;
}
.container .card:hover .content::before {
transform: translateY(40px) skewX(45deg);
filter: blur(5px);
opacity: .5;
}
.container .card:nth-child(1) {
z-index: 3;
}
.container .card:nth-child(2) {
z-index: 2;
}
.container .card:nth-child(3) {
z-index: 1;
}
728x90
LIST
'HTML _CSS' 카테고리의 다른 글
CSS Background Animation Effects (0) | 2022.05.30 |
---|---|
RANGE SLIDER (0) | 2022.05.29 |
Page Scroll Effect (0) | 2022.05.26 |
FILP CARD (0) | 2022.05.20 |
Isometric Menu Hover Effects (0) | 2022.05.19 |