JSFiddle - React, Tailwind, and code Playground
by w4hyou
HTML
<body>
<div url="http://info-kmu.blogspot.com/" class="smiley"> <span class="mata matakiri"></span>
<span class="mata matakanan"></span>
<div class="mulut">
<div class="lesungpipi"></div>
<div class="lesungpipi kanan"></div>
</div>
</div>
</body>
CSS
body {
background:#fff
}
div.smiley {
margin:50px;
width: 100px;
height: 100px;
position: relative;
border-radius: 150px;
-webkit-border-radius: 150px;
-moz-border-radius: 50px;
display: block;
background: #ffe632;
background: -webkit-gradient(linear, left top, left bottom, from(#fffe8d), to(#f6d23e));
background: -moz-linear-gradient(top, #fffe8d, #f6d23e);
box-shadow: inset 0px -14px 14px rgba(0, 0, 0, .3), 0px 2px 20px rgba(0, 0, 0, .6);
-webkit-box-shadow: inset 0px -14px 14px rgba(0, 0, 0, .3), 0px 2px 20px rgba(0, 0, 0, .6);
-moz-box-shadow: inset 0px -14px 14px rgba(0, 0, 0, .3), 0px 2px 20px rgba(0, 0, 0, .6);
}
span.mata {
width: 15px;
height: 25px;
background: #222;
border-radius: 100px/160px;
-webkit-border-radius: 100px 160px;
-moz-border-radius: 100px/160px;
position: absolute;
top: 20px;
box-shadow: 0 2px 0 rgba(255, 255, 255, 0.8);
-webkit-box-shadow: 0 2px 0 rgba(255, 255, 255, 0.8);
-moz-box-shadow: 0 2px 0 rgba(255, 255, 255, 0.8);
}
span.mata.matakiri {
left: 60px;
}
span.mata.matakanan {
right: 60px;
}
div.mulut {
width: 50px;
height: 20px;
border: 3px solid #222;
border-top: 0;
background: rgba(0, 0, 0, 0);
-moz-border-radius: 0 0 120px 120px / 0 0 90px 90px;
-webkit-border-radius: 0 0 120px 120px 0 0 90px 90px;
border-radius: 0 0 120px 120px / 0 0 90px 90px;
position: absolute;
bottom: 15px;
left: 22px;
box-shadow: 0 2px 0 rgba(255, 255, 255, 0.8);
-webkit-box-shadow: 0 2px 0 rgba(255, 255, 255, 0.8);
-moz-box-shadow: 0 2px 0 rgba(255, 255, 255, 0.8);
}
div.lesungpipi {
width: 3px;
height: 8px;
background: #222;
border-radius: 100px/160px;
-webkit-border-radius: 100px 160px;
-moz-border-radius: 100px/160px;
position: absolute;
top: -3px;
-webkit-transform: rotate(65deg);
-moz-transform: rotate(65deg);
left:...