View Single Post
Old 11-26-2012, 08:00 PM   PM User | #1
farmlord
New to the CF scene

 
Join Date: May 2012
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
farmlord is an unknown quantity at this point
help with code (fade in fade out)

I got some simple code which is suppose to make an image appear. Move it to a place on the screen with a duration set and then make it fade out straight away.

Code:
function MoveAndFade(200, 100)
{
    $('.laser').fadeIn('slow', function ()
    {
        $(this).animate({ left: 200px}, 'slow', 'swing', function ()
        {
            $(this).fadeOut();
        });
    })    
}
However this code is not working. Any help? If u got anther way to right it i could try that and see if it works.

Thanks again for the help
farmlord is offline   Reply With Quote