JSFiddle - React, Tailwind, and code Playground
by kiokotzu
HTML
<div id="year">
<div class="title" id="msj1">Senpai les desea</div>
<div class="title" id="msj2">Feliz Año Nuevo</div>
<div class="num two"><span class="hand"></span>2<span class="handA"></span></div>
<div class="num zero"><span class="hand"></span>0<span class="handA"></span></div>
<div class="num one"><span class="hand"></span>1<span class="handA"></span></div>
<div class="num four"><span class="hand"></span>4<span class="handA"></span></div>
</div>
CSS
@import url(http://fonts.googleapis.com/css?family=Righteous);
@import url(http://fonts.googleapis.com/css?family=Tangerine);
*
{
margin: 0;
}
body
{
background: antiquewhite;
}
#year{
position: relative;
margin: 0 auto 0 auto;
top: 50px;
font-family: 'Righteous', cursive;
font-size:110px;
background:#1f004d;
width:60%;
border-radius: 10px;
text-align:center;
animation:changeCol 1s infinite;
-webkit-animation:changeCol 1s infinite;
}
#msj1, #msj2
{
font-family: 'Tangerine', cursive;
font-size:110px;
background:#1f004d;
width:100%;
text-align:center;
animation:changeCol 1s infinite;
-webkit-animation:changeCol 1s infinite;
}
.title
{
color:#fff;
opacity:1;
animation:blink 0.2s infinite;
-webkit-animation:blink 0.2s infinite;
}
.num
{
display:inline-block;
position:relative;
}
.two{
color:#00ff5e;
animation: move 2s infinite;
-webkit-animation: move 2s infinite;
}
.zero
{
color:#ff52bf;
animation: move2 2s infinite;
-webkit-animation: move2 2s infinite;
}
.one
{
color: #ffff52;
animation: move 2s infinite;
-webkit-animation: move 2s infinite;
}
.four
{
color: #d452ff;
animation: move2 2s infinite;
-webkit-animation: move2 2s infinite;
}
.hand
{
transform-origin:0 0;
-webkit-transform-origin:0 0;
display:block;
border:3px solid black;
height:20px;
position:absolute;
}
.hand:after
{
content:"";
background:#fff;
width:20px;
height:20px;
border-radius:50%;
position:absolute;
left:-10px;
top:15px;
}
.handA
{
transform-origin:0 0;
-webkit-transform-origin:0 0;
display:block;
border:3px solid black;
height:20px;
position:absolute;
}
.handA:after
{
content:"";
background:#fff;
width:20px;
height:20px;
border-radius:50%;
position:absolute;
left:-10px;
top:15px;
}
.two .hand
{
left:8px;
...