View more demos...

Behance


Code:

SocialDig({
    selector: '.behance',
    service: 'behance',
    user: 'kjbrum',
    auth: 'xxxxx'
}, function(data) {
    if (data.projects.length > 0) {
        var list = document.createElement('div');
        list.className = 'g g-s-2 projects';

        // Loop through the projects
        data.projects.forEach(function(el, idx, arr) {
            if (idx < 4) {
                var item = document.createElement('div');
                item.className = 'gi project';

                item.innerHTML = '<a href="' + el.url + '" target="_blank"><img src="' + el.covers.original + '" alt="' + el.name + '" title="' + el.name + '"><br>' + el.name + '</a>';

                // Add the new item to the list
                list.appendChild(item);
            }
        });

        // Add the list to the page
        document.querySelector('.behance').appendChild(list);
    }
});

Results: