Attempting to use SimplyScroll to scroll Instagram images, but can't determine the proper HTML markup to get the two scripts to function together.
I'm a super novice web designer, and I've done days of research in trying to work out the correct JavaScript HTML to get these two scripts working together, but to no avail. Any assistance, or direction to resources is appreciated!
Best as I can understand, the correct method is to create a target ID with the Instafeed HTML , which SimplyScroll calls as the source images.
Closest I've gotten so far is below.
<script type="text/javascript">
var feed = new Instafeed({
get: 'user',
target: 'instagram_list',
userId: XXXXXXXXXXX,
limit: 15,
accessToken: 'XXXXXXXXXXXXXXXXXXXXXX,
resolution: 'thumbnail',
after: function() {
$("#instagram_list").simplyScroll({
speed: 1,
frameRate: 20,
orientation: 'horizontal',
direction: 'forwards',
customClass: 'instagram_scroller'
});
}
});
(jQuery);
feed.run();
</script>
<div id="instagram_list" class="simply-scroll-clip"> </div>
In this example, Instafeed loads the images, but is not styled properly and does not scroll. If the user reloads the page (not refresh, but instead selects the URL in the browser and hits enter) it works as intended.
I'm completely stumped on how and why it works on page reload only.
Link for the semi-working page is below