JSFiddle - React, Tailwind, and code Playground

HTML

<div id="83436955" class="video"></div>
<div id="83646667" class="video"></div>

JavaScript

function getThumb(vimeoVideoID) {
    var thumb_url;

    $.ajax({
        type: 'GET',
        url: 'http://vimeo.com/api/v2/video/' + vimeoVideoID + '.json',
        jsonp: 'callback',
        dataType: 'jsonp',
        success: function (data) {
            console.log(data[0].thumbnail_large);
            thumb_url = data[0].thumbnail_large;
             
        }
    });
   return thumb_url;
}

$('.video').each(function () {
    var thumb_url = getThumb(this.id);
    $(this).append('<img src="' + thumb_url + '" class="video_preview"/>');

});