Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Анимированные новогодние баннеры

Ноя
190
36
Пользователь
Всех приветствую!
Вот баннеры;

[Pawno-Help] Screenshot_20261127-205123.jpg
Напоминаю;баннеры живые просто по скрину это не видно.
А так как я не особо умный человек я не знаю как закрепить запись экрана.
Пожалуйста просите...

Less:
.ny {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 190px;
    height: 28px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: #fff;
    background-size: 200% 200%;
    overflow: hidden;
    animation: nyBg 4s ease infinite;

    &::after {
        content: "";
        position: absolute;
        top: 0;
        left: -100%;
        width: 45%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
        transform: skewX(-25deg);
        animation: nyShine 3.5s infinite;
    }

    &.dedmoroz {
        background-image: linear-gradient(120deg, #6b0015, #ff0844, #ff6a00, #6b0015);
        border: 1px solid #ffd700;
        box-shadow: 0 0 12px rgba(255, 8, 68, 0.5);
        &::before { content: "🎅"; }
    }

    &.snegurochka {
        background-image: linear-gradient(120deg, #001f3f, #0072ff, #00f2fe, #001f3f);
        border: 1px solid #00f2fe;
        box-shadow: 0 0 12px rgba(0, 242, 254, 0.45);
        &::before { content: "❄️"; }
    }

    &.grinch {
        background-image: linear-gradient(120deg, #132a13, #38b000, #ccff33, #132a13);
        border: 1px solid #ccff33;
        box-shadow: 0 0 12px rgba(56, 176, 0, 0.5);
        &::before { content: "😈"; }
    }

    &.snegovik {
        background-image: linear-gradient(120deg, #1b263b, #415a77, #a8dadc, #1b263b);
        border: 1px solid #e0fbfc;
        box-shadow: 0 0 12px rgba(168, 218, 220, 0.45);
        &::before { content: "⛄"; }
    }

    &.elf {
        background-image: linear-gradient(120deg, #081c15, #1b4332, #00f5d4, #081c15);
        border: 1px solid #00f5d4;
        box-shadow: 0 0 12px rgba(0, 245, 212, 0.45);
        &::before { content: "🎄"; }
    }
}

@keyframes nyBg {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes nyShine {
    0%, 60% { left: -100%; }
    100% { left: 200%; }
}
 
Сверху