Moving a blinking image from left to right jquery
<p>I am working on a project where I am assigned a task to make a blink image moving on the web page from the left to the right.
The image should move(step up) and blink each second.
I know how to make it blink, my code is below:</p>

<pre><code>function blink(time, interval){
    var timer = window.setInterval(function(){
        $("#img").css("opacity", "0.1");
        window.setTimeout(function(){
            $("#img").css("opacity", "1");
        }, 100);
    }, interval);
    window.setTimeout(function(){clearInterval(timer);}, time);
}
 blink(5000, 1000);
</code></pre>

<p>But I don't know how to move it on a second basis and at the same time blink it.</p>

<p>Please, help me guys!
Thanks</p>
