views:

51

answers:

5

http://i28.tinypic.com/2j0zbxi.gif

Is this possible via jQuery ? Basically as shown in above image , I have blue background , map image and text images. I want to achieve this kind of animation at the page load or whenver this image is loaded.

+1  A: 

Basically that's what jQuery's .animate() is for. You'll have to express every necessary animation state/step with CSS, but a simple animation like the one above shouldn't be a problem.

http://api.jquery.com/animate/

Joonas Trussmann
+1  A: 

There are different ways to show your elements using jQuery UI.

This link contains some examples : http://jqueryui.com/demos/show/

dejavu
+1  A: 

yes you can do it by mixing javscript and jquery... i have did something in a banner some time before..

the code follows

var timerCount = 1;
var timer = setInterval('sliderController()',5000);


function sliderController() {
    status = changeSlide(timerCount);
    if(status == 1) {
        timerCount++;
    }
    else{
        timerCount = 1;
    }
}

function changeSlide(timerCount)    {
    if(timerCount != 3) {
        leftValue = -1004 * timerCount;
        $('#banner_slider_container #banner_slides_container').stop().animate({'left':leftValue,'opacity':0.3},'slow',function()    {
            $('#banner_slider_container #banner_slides_container').animate({'opacity':1},'slow');
        });
        return 1;
    }
    else    {
        leftValue = 0;
        $('#banner_slider_container #banner_slides_container').stop().animate({'left':leftValue,'opacity':0.3},'slow',function()    {
            $('#banner_slider_container #banner_slides_container').animate({'opacity':1},'slow');
        });
        return 0;
    }

}

i think this will help you.......

Jaison Justus
let me try to get that timer code
Jaison Justus
i will edit the post if i get
Jaison Justus
+1  A: 

Since 1.4 jQuery has the .delay() function u can use in animations. Perhaps that's what you need?

Peter Smeekens
+1  A: 

You'll want to use a combination of animate() and delay() to time each slide just right. Here's an example of what I recently put together using this.

http://www.panthersweat.com/thursday/

harkmylord
i like that...cool
Ved