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
- keyframes
- 개발자
- SWIFT
- 비전공 개발자
- iOS 개발자
- CSS
- hover
- ipad
- MAC
- 프론트엔드
- css3
- HTML
- html5
- IOS
- image
- iPhone
- react
- xcode
- 비전공자
- front-end
- javascript
- 자바스크립트
- effect
- php
- 풀스택
- 백엔드
- jQuery
- Animation
- button
- 애니메이션
Archives
- Today
- Total
비전공자 개발일기
3D BUTTON 본문
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>3D BUTTON</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="container">
<button class="btn">Hover On Me</button>
</div>
</body>
</html>
*, *:after, *:before{
-webkit-box-sizing:border-box;
-moz-box-sizing:border-box;
box-sizing:border-box;
}
body{
font-size:100%;
padding:100px;
margin:0;
height:100%;
}
body{
font-family:Arial, sans-serif;
background:#000;
}
.container{
height:100%;
position:relative;
perspective:800px;
}
/* General button styles */
.btn{
border:none;
position:relative;
background:none;
padding:30px 80px;
display:inline-block;
text-transform:uppercase;
background:#cc0099;
color:#fff;
letter-spacing:2px;
font-size:1rem;
font-weight:800;
transform-style:preserve-3d;
outline:none;
outline:1px solid transparent;
transition:all 0.5s ease-out;
cursor:pointer;
}
.btn:after{
content:"Button";
position:absolute;
padding:30px 80px;
z-index:-1;
transition: all 0.5s ease-out;
width:100%;
height:100%;
left:0;
top:-100%;
background:#990073;
transform-origin:0% 100%;
transform:rotateX(90deg);
}
.btn:hover{
transform: translateY(40px) rotateX(-90deg);
}
728x90
LIST
'HTML _CSS' 카테고리의 다른 글
Image Animation Sequence (0) | 2022.05.13 |
---|---|
Nine Dots Menu (0) | 2022.05.11 |
Floating Text (0) | 2022.05.07 |
Instagram Notification Animation (0) | 2022.05.06 |
Card With Glass Effect (0) | 2022.05.03 |