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
- HTML
- 프론트엔드
- react
- xcode
- effect
- keyframes
- image
- button
- jQuery
- CSS
- iPhone
- ipad
- 풀스택
- Animation
- 비전공자
- javascript
- 개발자
- hover
- css3
- front-end
- IOS
- 비전공 개발자
- 자바스크립트
- 백엔드
- html5
- MAC
- iOS 개발자
- SWIFT
- php
- 애니메이션
Archives
- Today
- Total
비전공자 개발일기
FILP CARD 본문
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">
<link rel="stylesheet" href="style.css">
<title>FLIP CARD</title>
</head>
<body>
<div class="container">
<div class="card">
<div class="front">
<img class="img" src="./1.png">
<h2>I'm IRONMAN!</h2>
</div>
<div class="back">
<img class="img" src="./2.png">
<h2>I'm IRONMAN!</h2>
<b>Tony Stark</b>
</div>
</div>
</div>
</body>
</html>
* {
text-align: center;
}
.card {
width: 200px;
height: 220px;
position: relative;
background-color: transparent;
transition: transform .8s;
transform-style: preserve-3d;
}
.card:hover {
transform: rotateY(180deg);
cursor: pointer;
}
.front, .back {
width: 100%;
height: 100%;
background-color: #fff;
padding-top: 20px;
position: absolute;
border-radius: 10px;
backface-visibility: hidden;
display: table-row;
justify-content: center;
}
.front {
background: linear-gradient(90deg, rgba(180, 58, 170, 1) 0%,rgba(200, 29, 253, 1) 35%,rgba(252, 176, 69, 1) 100%);
}
.img {
width: 100px;
height: 100px;
}
.back {
transform: rotateY(180deg);
background-color: #cc3333;
}
728x90
LIST
'HTML _CSS' 카테고리의 다른 글
Isometric Cards (0) | 2022.05.28 |
---|---|
Page Scroll Effect (0) | 2022.05.26 |
Isometric Menu Hover Effects (0) | 2022.05.19 |
Sprite Animation (0) | 2022.05.18 |
Image Animation Sequence (0) | 2022.05.13 |