Jump to content
Search Community

Novice

Members
  • Posts

    5
  • Joined

  • Last visited

Posts posted by Novice

  1. I reworked the last Sahil's codes – it works in pure JavaScript. I have a problem with jQuery code currently:

     

    $('.slider-controls div').click(function(){
    	TweenMax.killDelayedCallsTo(nextSlide);
    	TweenMax.killDelayedCallsTo(nextSlideDescription);
    	nextSlide($(this).index());
    	nextSlideDescription($(this).index());
    });

     

  2. 5 hours ago, Sahil said:

    Whoever wrote that original demo did great job of keeping things simple, I struggled a lot doing so. Following is the demo, you can add few more conditions so clicking on current slide won't animate it.

     

    Thanks for this. Sahil, do you know how I can add class "active" to slider-controls when changing the slider?

  3. I'd like to say hello to everyone at the beginning.

     

    I'm a novice in JavaScript world and I have a question. I tried to create navigation for my first GSAP slider and I have no idea how to get started. I'd be grateful for all the tips.

     

    Regards,

    Novice

    See the Pen LOBmNO by anon (@anon) on CodePen

×
×
  • Create New...