Remove first slide without repositioning
Hello
i would like to remove a first slide whilst being on a second.
But when i do that, the third slide is shown.
How could i solve that?
I tried to call goto(0) but than the slider animates from the (now) second slide to the first.
I just want to remove the first slide without the user noticing that (without animations)
thanks,
Guille
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Dmitry Semenov on 21 Sep, 2012 07:35 AM
Hi,
Not sure if there won't be any issues, but in theory this should work:
Dmitry
Support Staff 2 Posted by Dmitry Semenov on 21 Sep, 2012 07:56 AM
additional note
Unfortunately, it becomes more complex if you want to do this without animation. You'll have to reset
-PREFIX-transition
CSS property andslider.st.transitionSpeed
slider option to 0 before reorering and revert to normal after it so it won't animate.To make this code work, you'll have to use unminified version of script to get access to local properties.
But you'll still notice short "flicker", especially on mobile devices because of rendering issues.
Dmitry
3 Posted by guille on 21 Sep, 2012 08:51 AM
Hmm..
that's not really satisfying. You should definitely think about a "animate=true/false" parameter in the next, prev, goto and removeSlide functions :)
By any chance.. Is there a way to "switch off" the first slide without removing it?
This could help too
Support Staff 4 Posted by Dmitry Semenov on 22 Sep, 2012 07:08 PM
You may simply remove content from slide, it depends on your situation.
Dmitry
5 Posted by guille on 23 Sep, 2012 01:20 PM
If i just remove the content, the left arrow of the slider is still switched on..
Well.. i think i am going to just deactivate the left arrow automatically or something.