I have been struggling to incorporate a jquery image slider on my website. Below, you can see the code I have been working with, and there seems to be an issue preventing me from achieving the desired result. Can someone kindly explain what might be wrong in this code? Also, within the 'motion2' class, I am attempting to move the slider image at a different time than the images in the 'motion1' class. What would be the most efficient way to achieve this? Thank you.
$(function(){
//configuration
let width = $('.two').width();
let animationSpeed = 2000;
let pause = 4000;
let currentSlide = 1;
//cache
... (the rest of the JavaScript code) ...