Using JQuery Deferred and Promise
<p>I have a function that I want to use deferred and promise to chain an animation.</p>

<p>The first animation is a type writer plugin, using <a href="https://github.com/stephband/jticker/blob/master/js/jquery.jticker.js" rel="nofollow">https://github.com/stephband/jticker/blob/master/js/jquery.jticker.js</a>.
The second is a function that contains other animations.</p>

<p>What I want to do is run the first animation and when the animation is completed, run the second.</p>

<pre><code> $(function () {            
        var ticker =setTimeout(runTicker(), 8000);           
        $.when(ticker).done(function(){
            setTimeout(Other(),16000)});
    });

  function runTicker() {
        $("#ticker").ticker({
            cursorList: " ",
            rate: 50,
            delay: 18000
        }).trigger("play").trigger("stop");
    }
</code></pre>

<p>I have tried numerous examples of deferred, but still can't get it.</p>

<p>I finally cleared all the examples in order to get the ticker working again.</p>

<p>How would I use deferred and promise to run the Other() function?</p>

<p>Thank you</p>
