<style>@keyframes tada{0%{transform:scale(1)}10%,20%{transform:scale(0.9) rotate(-3deg)}30%,50%,70%,90%{transform:scale(1.1) rotate(3deg)}40%,60%,80%{transform:scale(1.1) rotate(-3deg)}100%{transform:scale(1) rotate(0)}}
.logo h1:hover{
color:#8A53A1;
animation-fill-mode: both;
animation-name: tada;
animation-duration: 1.2s;
}
.logo h1{
font: 40px tahoma;
color: #5B5B5B;
float: right;
margin-top: 0px;
padding: 10px 30px 0px 0px;
transition: all 0.3s ease 0s;
font-family: "wdt";
}
0%{
transform: scale(1);
}
10%, 20%{
transform: scale(0.9) rotate(-3deg);
}
30%, 50%, 70%, 90%{
transform: scale(1.1) rotate(3deg);
}
40%, 60%, 80%{
transform: scale(1.1) rotate(-3deg);
}
100%{
transform: scale(1) rotate(0deg);
}
</style>
<div class="logo">
<h1>کدستان</h1>
</div>