Untitled

mail@pastecode.io avatar
unknown
plain_text
12 days ago
3.6 kB
3
Indexable
Never
.fnd-card {
    background-color: #14161b;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 12px 12px 0px 12px;
    height: 307px;
    display: block;

    &__hover {
        &:hover {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            padding: 16px;
            overflow: hidden;

            .fnd-card__icon {
                transition: revert;
            }

            .fnd-card__hover-item {
                --bs-gutter-y: 1rem;
            }

            .fnd-card__hover-hide {
                display: none
            }

            .fnd-card__hover-text__1,
            .fnd-card__hover-text__2,
            .fnd-card__hover-text__3 {
                opacity: 0;
                animation-duration: 400ms;
                animation-fill-mode: both;
            }

            .fnd-card__hover-text__1 {
                animation-name: fadeInDown;
                animation-delay: 0.1s;

                &-item {
                    -webkit-line-clamp: 4;
                }
            }

            .fnd-card__hover-text__2 {
                animation-name: fadeInUp;
                animation-delay: 0.2s;

                &-item {
                    -webkit-line-clamp: 1;
                }
            }

            .fnd-card__hover-text__3 {
                animation-name: fadeInUp;
                animation-delay: 0.3s;

                &-item {
                    -webkit-line-clamp: 4;
                }
            }
        }
    }


    &:hover {
        .fnd-card__icon {
            transform: translate(-50%, -50%) scale(1.2) !important;
            transform-origin: center center;
        }
    }

    &__img {
        position: relative;
        background-color: #333;
        border-radius: 8px;
        overflow: hidden;
        margin-bottom: 8px;

        &-overlay {
            &::before {
                content: "";
                position: absolute;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                width: 100%;
                height: 100%;
                background: rgb(0, 0, 0);
                background: -moz-linear-gradient(-180deg, rgba(0, 0, 0, 0.7875744047619048) 0%, rgba(255, 255, 255, 0) 100%);
                background: -webkit-linear-gradient(-180deg, rgba(0, 0, 0, 0.7875744047619048) 0%, rgba(255, 255, 255, 0) 100%);
                background: linear-gradient(-180deg, rgba(0, 0, 0, 0.7875744047619048) 0%, rgba(255, 255, 255, 0) 100%);
                filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#000000", endColorstr="#ffffff", GradientType=1);
                border-radius: 8px;
            }
        }

        &-item {
            width: 100%;
            height: 160px;
            display: block;
            object-fit: cover;
            border-radius: 8px;
        }

    }

    &__icon {

        transition: all .2s;
        background-color: rgba(217, 217, 217, 0.8);
        box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
    }
}

@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-50px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
Leave a Comment