body {
    margin: 0;
    font-family: sans-serif;
    background: #f4f4f4;
}

.scroll-element {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    padding: 50px;
}

.block {
    height: 150px;
    width: 300px;
    background-color: rgb(2, 20, 78);
    border-radius: 8px;
    opacity: 0; 
    animation: scrolling 1s linear forwards;
    animation-timeline: view();
    animation-range: entry 0% cover 50%;
}

@keyframes scrolling {
    from {
        opacity: 0;
        transform: translateX(-150px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.scroll-element1 {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 50px;
}

.block1 {
    height: 200px;
    width: 500px;
    background-color: rgb(2, 78, 55);
    border-radius: 8px;
    opacity: 0; 
    animation: scrolling 1s linear forwards;
    animation-timeline: view();
    animation-range: entry 0% cover 50%;
}

@keyframes scrolling {
    from {
        opacity: 0;
        transform: translateX(-150px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}