<!-- دکمه انیمیشنی با افکت shake -->
<button class="button">
<span>Not allowed!</span>
<span>
<svg viewBox="0 0 24 24">
<path d="m12.002 2.005c5.518..."/>
</svg>
</span>
</button>
<style>
.button {
position: relative;
display: flex;
align-items: center;
justify-content: center;
gap: 5px;
padding: 15px 20px;
background-color: #212121;
border: none;
color: #e8e8e8;
font-size: 20px;
font-weight: 600;
border-radius: 50px;
cursor: not-allowed;
overflow: hidden;
transition: all 0.3s ease cubic-bezier(0.23, 1, 0.320, 1);
}
.button span { position: relative; z-index: 2; }
.button::before {
position: absolute;
content: '';
width: 100%; height: 100%;
translate: 0 105%;
background-color: #F53844;
transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
}
.button svg {
width: 32px; height: 32px;
fill: #F53844;
transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
}
.button:hover { animation: shake 0.2s linear 1; }
.button:hover::before { translate: 0 0; }
.button:hover svg { fill: #e8e8e8; }
@keyframes shake {
0% { rotate: 0deg; }
33% { rotate: 10deg; }
66% { rotate: -10deg; }
100% { rotate: 10deg; }
}
</style>
من را در شبکههای اجتماعی دنبال کنید
برای همکاری، مشاوره یا سفارش پروژه از هر کدام از این راهها با من در تماس باشید
تلگرام
پاسخ سریع در تلگرام
@YourUsername ↗اینستاگرام
نمونهکارها و پروژههای جدید
@YourUsername ↗واتساپ
مشاوره و سفارش پروژه
+98 912 345 6789 ↗