JSFiddle - React, Tailwind, and code Playground

HTML

<div role="main" class="main selection-carousel">
        <section>
            
            <div class="smoke">
                <div class="mask">
                    <div class="smoke1"></div>
                    <div class="smoke2"></div>
                    <div class="smoke3"></div>
                </div>
            </div>
            
        </section>
        
        
    <img src="http://www.mikevierwind.nl/images/bg-selection-carousel.png" width="2610" height="600" alt="" class="carousel-image">    
    
    </div>

CSS

html { 
    font-size                : 100%; 
    overflow-y                : scroll; 
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust    : 100%;
}

body {
    position                : relative;
    margin                    : 0 auto;
    max-width                : 100em;
    min-width                : 98em;
    font                    : 10px/1.6 Georgia, "Times New Roman", Times, serif;
}




/* main */
.main {
    position                : relative;
    min-height                : 607px;
}

/*
 *    Selectie pagina. Selecteer je thee soort
 */
 
/* carousel */
.selection-carousel {
    width                    : 1000px;
    height                    : 607px;
    overflow                : hidden;
    background                : url(http://www.mikevierwind.nl/images/bg-selection.jpg) no-repeat left top;
}

    .selection-carousel section {
        position                : relative;
        z-index                    : 20;
    }

  

.carousel-image {
    position                : absolute;
    bottom                    : 0;
    left                    : 0;
    z-index                    : 10;
}

/* aside */
.selection-carousel .aside {
    float                    : right;
    width                    : 39%;
    padding                    : 200px 50px 0;
}

    .selection-carousel h2 {
        font-size            : 4.600em;
        color                : rgb(255, 255, 255);
        line-height            : normal;
        letter-spacing        : -0.004em;
        text-shadow            : rgb(72, 72, 72) 0 0 6px;
    }
    
    .selection-carousel p {
        padding                : 0 0 65px;
        font-size            : 2.800em;
        color                : rgb(255, 255, 255);
        line-height            : 32px;
        font-family            : Georgia, "Times New Roman", Times, serif;
        text-shadow            : rgb(72, 72, 72) 0 0 6px;
    }

/* smoke */
.smoke {
    position                : absolute;
    top                       ...

JavaScript

$(function() { 
 
        var smoke1 = $(".smoke1"), 
            smoke2 = $(".smoke2"), 
            smoke3 = $(".smoke3"); 
     
        (function anim() { 
     
            var direction = ! ($(this).offset() || {}).top > 0; 
     
            smoke1.animate({ 
                top: -50 * direction 
            }, 5000, anim); 
            smoke2.animate({ 
                top: -150 * direction 
            }, 5000, anim); 
            smoke3.animate({ 
                top: -100 * direction 
            }, 3000, anim); 
     
        })(); 
    });