N
N
not Doctor Strange2018-12-01 19:44:07
JavaScript
not Doctor Strange, 2018-12-01 19:44:07

How can I make slick slider pull up instagram photos using the instafeed js plugin?

How can I implement that the slider is initiated and its slides are photos downloaded from instagram through the instafeed js plugin?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dima Pautov, 2018-12-01
@StrangeNotADoctor

var feed = new Instafeed({
        get: 'user',
        userId: 'USER_ID',
        success : function(data) {
var slider = $('.slider').slick({
  infinite: true,
  slidesToShow: 3,
  slidesToScroll: 3
});
            // Далее перебираем ответ, циклом. 

// И воспользовавшись методом slickAdd
slider.slick('slickAdd','<div><h3>Вставляем сюда переменные с значениями из ответа</h3></div>');
        }
    });
    feed.run();

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question