// JS Goes here - ES6 supported

var $ = window.jQuery;

$(document).ready(function() {
  $(".carousel").slick({
    infinite: true,
    speed: 500,
    slidesToShow: 1,
    prevArrow: "<button class='heart-arrow heart-left'><img src='/images/assets/heart-left.png'></button>",
    nextArrow: "<button class='heart-arrow heart-right'><img src='/images/assets/heart-right.png'></button>",
  });

  var $carousel = $(".carousel");
  $(document).on("keydown", function(e) {
    if (e.keyCode === 37) {
      $carousel.slick("slickPrev");
    }
    if (e.keyCode === 39) {
      $carousel.slick("slickNext");
    }
  });

  $(".get-married h1").animate({
    marginLeft: "0px"
  }, {
    duration: 1500,
    done: function() {
      $(".i-left, .i-right").css({
        visibility: "visible"
      });
      $(".i-right, .i-left").animate({
        left: 0
      }, {
        duration: 1000,
        done: function() {
          window.confettify();
        }
      });
    }
  });
});

// JS Goes here - ES6 supported

var $ = window.jQuery;

$(document).ready(function() {
  $(".carousel").slick({
    infinite: true,
    speed: 0,
    slidesToShow: 1,
    prevArrow: "<button class='heart-arrow heart-left'><img src='/images/assets/heart-left.png'></button>",
    nextArrow: "<button class='heart-arrow heart-right'><img src='/images/assets/heart-right.png'></button>",
  });

  var $carousel = $(".carousel");
  $(document).on("keydown", function(e) {
    if (e.keyCode === 37) {
      $carousel.slick("slickPrev");
    }
    if (e.keyCode === 39) {
      $carousel.slick("slickNext");
    }
  });

  $(".get-married h1").animate({
    marginLeft: "0px"
  }, {
    duration: 1500,
    done: function() {
      $(".i-left, .i-right").css({
        visibility: "visible"
      });
      $(".i-right, .i-left").animate({
        left: 0
      }, {
        duration: 1000,
        done: function() {
          window.confettify();
        }
      });
    }
  });
});

Bring the image in immediately so the frame doesn't move
Bring the image in immediately so the frame doesn't move
