How to wrap script in setTimeout
<p>I have some jquery code which resets image sliders to slide 1 when the tabs are clicked. The problem is, it happens instantly, so you see a little flicker of the reset slider before the tab fades out. </p>

<p>I want to "hold" the reset back about half a second until it fades out. </p>

<p>I have been told I need to wrap the code in a "setTimeout" function, so I am hoping for some assistance on how to do this. </p>

<p>It is the "Work" section of this page that I'm talking about: www.oncreative.com.au</p>

<p>This is the code I have to reset the sliders: </p>

<pre><code>&lt;script&gt;
    $('.reset').click(function() {
    $('.workslider').each(function() {
           var s = $(this).data('royalSlider');
           s.st.transitionSpeed = 0;
            s.goTo(0);
            setTimeout(function() {
                s.st.transitionSpeed = 600;
            }, 10); 
    });
    });
&lt;/script&gt;
</code></pre>

<p>Thanks in advance!</p>
