코드펜에서 이거 발견했는데... 정보
코드펜에서 이거 발견했는데...
본문
https://codepen.io/jpanter/pen/wgbZzQ
누구... 닮은 것 같네여 ㅎㅎㅎㅎㅎ
재미난 거 많아요 코드펜에 ㅎㅎㅎ
한가할 때 이것저것 보다보면 공부도 되고 좋습니다 ~
추천
1
1
댓글 16개

헐... 코드펜을 (HTML로도 아이프레임으로도) 퍼올 수가 없네여.. ㅠ 허억

html:
<main>
<div class="graphic-container">
<span class="face"></span>
<span class="hair"></span>
<span class="sideburns"></span>
<span class="eyebrow eyebrow-left"></span>
<span class="eyebrow eyebrow-right"></span>
<span class="nose"></span>
<span class="mouth"></span>
<span class="bubble">WRONG</span>
</div>
</main>
css:
main {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
width: 100vw;
height: 100vh;
}
.graphic-container {
position: relative;
width: 140px;
height: 140px;
}
.hair {
display: block;
position: absolute;
top: 0;
right: 0;
width: 140px;
height: 28px;
border-bottom-left-radius: 20px;
border-top-right-radius: 20px;
background: -webkit-linear-gradient(45deg, #FEC733 0%, #FEC733 30%, #FED73A 30%, #FED73A 50%, #FCE15C 50%, #FCE15C 100%);
background: linear-gradient(45deg, #FEC733 0%, #FEC733 30%, #FED73A 30%, #FED73A 50%, #FCE15C 50%, #FCE15C 100%);
-webkit-transform-origin: 100%;
transform-origin: 100%;
-webkit-animation: blow 8s infinite;
animation: blow 8s infinite;
}
.sideburns {
position: absolute;
top: 0;
right: 0;
height: 100px;
width: 20px;
background: #FCE15C;
border-bottom-left-radius: 20px;
border-top-right-radius: 20px;
}
.face {
display: block;
position: absolute;
top: 0;
right: 0;
width: 120px;
height: 130px;
background: #FBAC3E;
border-bottom-right-radius: 20px;
border-top-right-radius: 20px;
border-top-left-radius: 40px;
border-bottom-left-radius: 60px;
}
.eyebrow {
display: block;
position: absolute;
top: 40px;
background: #FCE15C;
width: 30px;
height: 6px;
-webkit-animation: bounce 4s infinite;
animation: bounce 4s infinite;
}
.eyebrow.eyebrow-left {
left: 10px;
border-bottom-left-radius: 6px;
border-top-right-radius: 6px;
}
.eyebrow.eyebrow-right {
right: 40px;
border-top-left-radius: 6px;
border-bottom-right-radius: 6px;
}
.eyebrow::after {
content: '';
position: absolute;
background: #333;
width: 12px;
height: 4px;
border-radius: 10px;
top: 10px;
left: 5px;
-webkit-animation: shift 4s infinite;
animation: shift 4s infinite;
}
.nose {
display: block;
position: absolute;
width: 8px;
height: 40px;
top: 50px;
left: 48px;
border-radius: 8px;
background: #bf6a2e;
}
.mouth {
display: block;
position: absolute;
width: 30px;
height: 6px;
top: 100px;
left: 60px;
border-radius: 6px;
background: #333;
-webkit-animation: mouth 8s infinite;
animation: mouth 8s infinite;
}
.bubble {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
position: absolute;
top: 30px;
background: #FCE15C;
width: 120px;
height: 40px;
left: -140px;
border-bottom-left-radius: 12px;
border-top-right-radius: 12px;
-webkit-animation: bubble 8s infinite;
animation: bubble 8s infinite;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
font-weight: 700;
color: #333;
}
.bubble::after {
content: '';
position: absolute;
bottom: -10px;
right: -10px;
width: 10px;
height: 10px;
background: #FCE15C;
border-top-right-radius: 50%;
border-bottom-left-radius: 50%;
}
@-webkit-keyframes shift {
0% {
-webkit-transform: translateX(0);
transform: translateX(0);
}
20% {
-webkit-transform: translateX(0);
transform: translateX(0);
}
30% {
-webkit-transform: translateX(9px);
transform: translateX(9px);
}
40% {
-webkit-transform: translateX(2px);
transform: translateX(2px);
}
50% {
-webkit-transform: translateX(0);
transform: translateX(0);
}
100% {
-webkit-transform: translateX(0);
transform: translateX(0);
}
}
@keyframes shift {
0% {
-webkit-transform: translateX(0);
transform: translateX(0);
}
20% {
-webkit-transform: translateX(0);
transform: translateX(0);
}
30% {
-webkit-transform: translateX(9px);
transform: translateX(9px);
}
40% {
-webkit-transform: translateX(2px);
transform: translateX(2px);
}
50% {
-webkit-transform: translateX(0);
transform: translateX(0);
}
100% {
-webkit-transform: translateX(0);
transform: translateX(0);
}
}
@-webkit-keyframes blow {
0% {
-webkit-transform: rotate(0);
transform: rotate(0);
}
30% {
-webkit-transform: rotate(2deg);
transform: rotate(2deg);
}
50% {
-webkit-transform: rotate(0);
transform: rotate(0);
}
80% {
-webkit-transform: rotat
<main>
<div class="graphic-container">
<span class="face"></span>
<span class="hair"></span>
<span class="sideburns"></span>
<span class="eyebrow eyebrow-left"></span>
<span class="eyebrow eyebrow-right"></span>
<span class="nose"></span>
<span class="mouth"></span>
<span class="bubble">WRONG</span>
</div>
</main>
css:
main {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
width: 100vw;
height: 100vh;
}
.graphic-container {
position: relative;
width: 140px;
height: 140px;
}
.hair {
display: block;
position: absolute;
top: 0;
right: 0;
width: 140px;
height: 28px;
border-bottom-left-radius: 20px;
border-top-right-radius: 20px;
background: -webkit-linear-gradient(45deg, #FEC733 0%, #FEC733 30%, #FED73A 30%, #FED73A 50%, #FCE15C 50%, #FCE15C 100%);
background: linear-gradient(45deg, #FEC733 0%, #FEC733 30%, #FED73A 30%, #FED73A 50%, #FCE15C 50%, #FCE15C 100%);
-webkit-transform-origin: 100%;
transform-origin: 100%;
-webkit-animation: blow 8s infinite;
animation: blow 8s infinite;
}
.sideburns {
position: absolute;
top: 0;
right: 0;
height: 100px;
width: 20px;
background: #FCE15C;
border-bottom-left-radius: 20px;
border-top-right-radius: 20px;
}
.face {
display: block;
position: absolute;
top: 0;
right: 0;
width: 120px;
height: 130px;
background: #FBAC3E;
border-bottom-right-radius: 20px;
border-top-right-radius: 20px;
border-top-left-radius: 40px;
border-bottom-left-radius: 60px;
}
.eyebrow {
display: block;
position: absolute;
top: 40px;
background: #FCE15C;
width: 30px;
height: 6px;
-webkit-animation: bounce 4s infinite;
animation: bounce 4s infinite;
}
.eyebrow.eyebrow-left {
left: 10px;
border-bottom-left-radius: 6px;
border-top-right-radius: 6px;
}
.eyebrow.eyebrow-right {
right: 40px;
border-top-left-radius: 6px;
border-bottom-right-radius: 6px;
}
.eyebrow::after {
content: '';
position: absolute;
background: #333;
width: 12px;
height: 4px;
border-radius: 10px;
top: 10px;
left: 5px;
-webkit-animation: shift 4s infinite;
animation: shift 4s infinite;
}
.nose {
display: block;
position: absolute;
width: 8px;
height: 40px;
top: 50px;
left: 48px;
border-radius: 8px;
background: #bf6a2e;
}
.mouth {
display: block;
position: absolute;
width: 30px;
height: 6px;
top: 100px;
left: 60px;
border-radius: 6px;
background: #333;
-webkit-animation: mouth 8s infinite;
animation: mouth 8s infinite;
}
.bubble {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
position: absolute;
top: 30px;
background: #FCE15C;
width: 120px;
height: 40px;
left: -140px;
border-bottom-left-radius: 12px;
border-top-right-radius: 12px;
-webkit-animation: bubble 8s infinite;
animation: bubble 8s infinite;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
font-weight: 700;
color: #333;
}
.bubble::after {
content: '';
position: absolute;
bottom: -10px;
right: -10px;
width: 10px;
height: 10px;
background: #FCE15C;
border-top-right-radius: 50%;
border-bottom-left-radius: 50%;
}
@-webkit-keyframes shift {
0% {
-webkit-transform: translateX(0);
transform: translateX(0);
}
20% {
-webkit-transform: translateX(0);
transform: translateX(0);
}
30% {
-webkit-transform: translateX(9px);
transform: translateX(9px);
}
40% {
-webkit-transform: translateX(2px);
transform: translateX(2px);
}
50% {
-webkit-transform: translateX(0);
transform: translateX(0);
}
100% {
-webkit-transform: translateX(0);
transform: translateX(0);
}
}
@keyframes shift {
0% {
-webkit-transform: translateX(0);
transform: translateX(0);
}
20% {
-webkit-transform: translateX(0);
transform: translateX(0);
}
30% {
-webkit-transform: translateX(9px);
transform: translateX(9px);
}
40% {
-webkit-transform: translateX(2px);
transform: translateX(2px);
}
50% {
-webkit-transform: translateX(0);
transform: translateX(0);
}
100% {
-webkit-transform: translateX(0);
transform: translateX(0);
}
}
@-webkit-keyframes blow {
0% {
-webkit-transform: rotate(0);
transform: rotate(0);
}
30% {
-webkit-transform: rotate(2deg);
transform: rotate(2deg);
}
50% {
-webkit-transform: rotate(0);
transform: rotate(0);
}
80% {
-webkit-transform: rotat

되었어요?
코드펜에 좋은 것 많죠..
코드펜에 좋은 것 많죠..

@365ok 위 코드는 뭐죵-ㅅ -??

@nanati 언급하신 코드펜에서
html과 css 복사했어요..
html과 css 복사했어요..

@365ok 아... ㅎㅎㅎ 그렇군요 ~

안목이 탁월하시네요 ㅎ

@천사별 세상 참 대단한 사람들이 많아요~

이런거 제 웹사이트에도 쓰고 싶어요.
예쁠꺼 같아요.
예쁠꺼 같아요.

@스노든 ㅎㅎㅎ 공부해보세용~

세상은 복붙으로 이루워졌습니다. 기억하지 마시고 복붙하세요.

@묵공 ㅎㅎㅎ 그렇죠 복붙 ㅎ

딱보니 떠오르는 사람이 있네요 ㅎㅎ

@동하아빠 그죠 ㅎㅎㅎㅎ 그림이 더 나은 것 같기도 ㅎㅎ
세상에 말도하네요ㅎㅎ

@리미무 Wrong! ㅎ