Jump to content
Search Community

Sahil last won the day on November 25 2018

Sahil had the most liked content!

Sahil

Business
  • Posts

    1,004
  • Joined

  • Last visited

  • Days Won

    71

Status Replies posted by Sahil

  1. Hi Sahil, I was trying to expand on a codepen that you did called "Draggable with Snap" and would love some help, if you could (Ive linked to your codepen below) . Question(s), How can I assign an 'active' class to whichever the current slide might be? And just one other thing :), I'd like to add new slides on the fly, so I made a button that appends a new slide instance to the #slider div - and it shows up in the console - but, not in the slider with the other slides. Ive been having a hard time with this and would greatly appreciate any help you could offer. Thanks!

     

     

    1. Sahil test

      Sahil

      Hi Jesse,

       

      Seems like you attached my pen. Here is how you can add active class to a slide, check code added in setProgress function,

       

       

      To add new slides, you need to reselect slides in jQuery so the new elements will be selected. You need to recalculate the sliderLength to accommodate the added elements and you need to calculate the x translate of the '#slider'. Basically you need to do what I am doing on resize event.

       

      If you have anymore questions please post them in the Forum where others can see it.

    2. (See 1 other reply to this status update)

  2. Hi Sahil, I don't know if you're the guy to ask, but, I just purchased the 'Shockingly Green' membership for a project that I'm working on with one other developer. I'm wondering if the other developer on my team will be able use the code? Will we need to share an environment or can we both work independently? What all can you tell me about this?

     

    Thanks,

    Jesse

    1. Sahil test

      Sahil

      Hi Jesse,

       

      @Carl and @GreenSock can comment on any licence related queries. They would be notified as I have tagged them but you can message them directly or post in forum just to be sure they see your question. 

    2. (See 1 other reply to this status update)

×
×
  • Create New...