// Placeholder manifest file.
// the installer will append this file to the app vendored assets here: vendor/assets/javascripts/spree/frontend/all.js'

//= require lightbox.min.js

var index = 1;

$(document).ready(function() {
  startSlider();
});


function startSlider() {
  images = $("#showcase_inner_container > img");
  count = images.size() + 1;

  loop = setInterval( function() {
    $("#showcase_inner_container").css("transform", "translateX(" + (index * -663) + "px)");
    //$("#showcase_inner_container > img#" + index).css("transform", "translateX(" + (index * -663) + "px)");
    index += 1;

    console.log(index + " : " + (index * -663) + "px");

    if (index == count) {
      index = 1;
      $("#showcase_inner_container").css("transform", "translateX(" + (index * -663) + "px)");
    }

  }, 5000);
}

@@ -379,24 +379,80 @@
 unction() %7B%0A
+    console.log(index + %22 : %22 + (index * -663) + %22px%22);%0A
     $(%22#show
@@ -663,65 +663,8 @@
 1;%0A%0A
-    console.log(index + %22 : %22 + (index * -663) + %22px%22);%0A%0A
     

Fix showcase.