CSS3으로 3디텍스트애니 작성하기
오늘은 CSS3으로 3디텍스트 구현해보렵니다.
풀소스는 https://codepen.io/web-tiki/pen/azeKNy 에서 바로 확인가능합니다.

마우스를 HOVER위에 옮기면 글짜가 각도변환되어 3디이펙트를 보여줍니다.
[code]
HTML
<div id="title">
<h1 data-content="HOVER">HOVER</h1>
</div>
CSS
*{margin:0;padding:0;}
html,body{height:100%;width:100%;overflow:hidden;background:#0099CC;}
#title{
position:absolute;
top:50%; left:50%;
transform:translate(-50%,-50%);
perspective-origin:50% 50%;
perspective:300px;
}
h1{
text-align:center;
font-size:12vmin;
font-family: 'Open Sans', sans-serif;
color:rgba(0,0,0,0.8);
line-height:1em;
transform:rotateY(50deg);
transition:transform 2s;
perspective:150px;
perspective-origin:0% 50%;
}
h1:hover{
transform:rotateY(-20deg);
}
h1:after{
content:attr(data-content);
position:absolute;
left:0;top:0;
transform-origin:50% 100%;
transform:rotateX(-90deg);
color:#0099CC;
}
#title:before{
content:'';
position:absolute;
top:-150%; left:-25%;
width:180%; height:328%;
background:rgba(255,255,255,0.7);
transform-origin: 0 100%;
transform: translatez(-200px) rotate(40deg) skewX(35deg);
border-radius:0 0 100% 0;
animation:light 5s;
}
@keyframes light{
from{opacity:0;}
to{opacity:1;}
}
[/code]
댓글 2개
게시판 목록
개발자팁
질문은 QA에서 해주시기 바랍니다.
| 번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|---|
| 4826 | jQuery | 8년 전 | 1672 | ||
| 4825 | JavaScript | 8년 전 | 2739 | ||
| 4824 | jQuery | 8년 전 | 1462 | ||
| 4823 | jQuery | 8년 전 | 1725 | ||
| 4822 | jQuery | 8년 전 | 1810 | ||
| 4821 | jQuery | 8년 전 | 1637 | ||
| 4820 | jQuery | 8년 전 | 1647 | ||
| 4819 | jQuery | 8년 전 | 1325 | ||
| 4818 | jQuery | 8년 전 | 1966 | ||
| 4817 | jQuery | 8년 전 | 2407 | ||
| 4816 | jQuery | 8년 전 | 1703 | ||
| 4815 | jQuery | 8년 전 | 1420 | ||
| 4814 | jQuery | 8년 전 | 1839 | ||
| 4813 | jQuery | 8년 전 | 5411 | ||
| 4812 | 기타 | 8년 전 | 3163 | ||
| 4811 | jQuery | 8년 전 | 1542 | ||
| 4810 | jQuery | 8년 전 | 1714 | ||
| 4809 | jQuery | 8년 전 | 1799 | ||
| 4808 | PHP |
|
8년 전 | 5083 | |
| 4807 | node.js |
|
8년 전 | 4115 | |
| 4806 | jQuery | 8년 전 | 2215 | ||
| 4805 | jQuery | 8년 전 | 1652 | ||
| 4804 | jQuery | 8년 전 | 1201 | ||
| 4803 | jQuery | 8년 전 | 1910 | ||
| 4802 | jQuery | 8년 전 | 1417 | ||
| 4801 | jQuery | 8년 전 | 1522 | ||
| 4800 | jQuery | 8년 전 | 1742 | ||
| 4799 | jQuery | 8년 전 | 1984 | ||
| 4798 | jQuery | 8년 전 | 1520 | ||
| 4797 | jQuery | 8년 전 | 1454 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기