Jump to content

Recommended Posts

I installed this: http://www.jqueryscript.net/slider/Lightweight-Overlay-Content-Slider-Plugin-For-jQuery.html

 

I'd like to find out if there's a way to set a time to delay or begin each separate slide

I've horsed around with this, and searched google, but I haven't been able to find a solution. Here's some relevant code:

<ul id="slideshow" class="slides">
  <li data-duration="5000" class="active">
    <div class="slide-content1">
      Slide Content 1
    </div>
  </li>
  <li data-duration="3000">
    <div class="slide-content2">
      Slide Content 2
    </div>
  </li>
  <li data-duration="1000">
    <div class="slide-content3">
      Slide Content 3
    </div>
  </li>
</ul>

ul.slides {
  list-style: none;
  padding: 0;
  margin: 0;
}

ul.slides li {
  margin: 0;
  background: rgba(10, 10, 90, 0.5);
  padding: 10%;
  color: #fff;
  font-size: 18rem;
  font-weight: bold;
  display: flex;
  align-content: center;
  justify-content: center;
  opacity: 0;
  position: absolute;
  width: 1000px;
  height: 22%;
  top: 155px;
  right: 0;
  bottom: 0;
  z-index: 8;
  transition: transform 1.4s cubic-bezier(0.01, 1, 0.91, 1) 0.5s;
}
 @media all and (max-width: 1000px) {

ul.slides li { font-size: 20vw; }
}

ul.slides li.active { z-index: 10; }

ul.slides li.active.slide-left { transform: translate3d(100%, 0, 0); }

ul.slides li.active.slide-right { transform: translate3d(-100%, 0, 0); }

ul.slides li.last-active { z-index: 9; }

ul.slides li:first-child {
  left: 0;
  opacity: 1;
}

Any guidance  will be appreciated. Thanks

Link to comment
https://forums.phpfreaks.com/topic/301871-set-timing-for-each-slide-on-slider/
Share on other sites

Look at the demo. It's right in the code:

$('#slideshow').dsSlider({duration: 5000, direction:"right"});
                          ^^^^^^^^^^^^^^

If you want different durations, you'll have to edit the plugin. It's still a TODO:

//TODO: dynamisk duration
Edited by Jacques1

Thanks so much for your reply,

but "duration", I believe, sets the the length of time the slide appears, am I correct? not when it begins or ends.

Also, that sets the duration for all slides, correct? 

I'm asking about a solution that might "a way to set a time to delay or begin each separate slide.

Any clarification, or additional assistance. Thanks again

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.