Jump to content
Search Community

Catalin R.

Business
  • Posts

    93
  • Joined

  • Last visited

Posts posted by Catalin R.

  1. Hi,

    I have a problem with this code:

    for (let i = 0; i < slides.length; i++) {
              TweenMax.set(slides[i], { backgroundColor: colorArray[i] });
    
              var newDot = document.createElement("div");
              newDot.className = "dot";
              newDot.index = i;
              navDots.push(newDot);
    
              jQuery(newDot).on("click", function() {
                  slideAnim();
              });
    
              //dots.appendChild(newDot);
          }

    The dots of slider are not appearing.

    I've commented this: //dots.appendChild(newDot); Because I have an error. I need to use jQuery to create new dot here.

     

    When I drag the slide I have also an error: Cannot read property "x"

    Thanks!

×
×
  • Create New...