Chrisj Posted August 12, 2016 Share Posted August 12, 2016 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 Quote Link to comment https://forums.phpfreaks.com/topic/301871-set-timing-for-each-slide-on-slider/ Share on other sites More sharing options...
Jacques1 Posted August 12, 2016 Share Posted August 12, 2016 (edited) 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 August 12, 2016 by Jacques1 Quote Link to comment https://forums.phpfreaks.com/topic/301871-set-timing-for-each-slide-on-slider/#findComment-1536052 Share on other sites More sharing options...
Chrisj Posted August 12, 2016 Author Share Posted August 12, 2016 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 Quote Link to comment https://forums.phpfreaks.com/topic/301871-set-timing-for-each-slide-on-slider/#findComment-1536053 Share on other sites More sharing options...
Jacques1 Posted August 12, 2016 Share Posted August 12, 2016 Like I said, the plugin doesn't support different durations for individual slides. If you need this special feature, you either have to rewrite the plugin or choose a different one. Quote Link to comment https://forums.phpfreaks.com/topic/301871-set-timing-for-each-slide-on-slider/#findComment-1536054 Share on other sites More sharing options...
Chrisj Posted August 12, 2016 Author Share Posted August 12, 2016 Thanks for your reply. Do you know of a "different one"? Quote Link to comment https://forums.phpfreaks.com/topic/301871-set-timing-for-each-slide-on-slider/#findComment-1536056 Share on other sites More sharing options...
Jacques1 Posted August 12, 2016 Share Posted August 12, 2016 I've never needed different durations, but this has been successfully hacked into the slick plugin. Quote Link to comment https://forums.phpfreaks.com/topic/301871-set-timing-for-each-slide-on-slider/#findComment-1536057 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.