61 lines
1.5 KiB
CSS
61 lines
1.5 KiB
CSS
@tailwind base;
|
|
@tailwind components;
|
|
@tailwind utilities;
|
|
|
|
:root {
|
|
--gradient-colors: linear-gradient(
|
|
60deg,
|
|
#4a00e0, /* Синий */
|
|
#6a00e8, /* Переходный */
|
|
#8e2de2 /* Фиолетовый */
|
|
);
|
|
}
|
|
|
|
body {
|
|
background: linear-gradient(135deg, #4a00e0, #8e2de2);
|
|
min-height: 100vh;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
.banner-container {
|
|
position: relative;
|
|
background: white; /* Основной цвет баннера */
|
|
border-radius: 16px;
|
|
padding: 20px;
|
|
color: #333;
|
|
text-align: center;
|
|
width: 400px;
|
|
height: 200px;
|
|
z-index: 1;
|
|
overflow: hidden; /* Обрезаем анимацию, выходящую за границы */
|
|
}
|
|
|
|
.shimmering-border {
|
|
position: absolute;
|
|
inset: 0; /* Заполняет весь элемент */
|
|
border-radius: inherit;
|
|
background: var(--gradient-colors);
|
|
background-size: 200% 200%; /* Увеличиваем размер градиента для анимации */
|
|
animation: shimmer 3s linear infinite;
|
|
mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
|
|
-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
|
|
mask-composite: exclude;
|
|
-webkit-mask-composite: destination-out;
|
|
padding: 4px; /* Толщина контура */
|
|
z-index: -1;
|
|
}
|
|
|
|
@keyframes shimmer {
|
|
0% {
|
|
background-position: 0% 50%;
|
|
}
|
|
50% {
|
|
background-position: 100% 50%;
|
|
}
|
|
100% {
|
|
background-position: 0% 50%;
|
|
}
|
|
}
|