KstreakOG
KstreakOG

Reputation: 57

Text Slide Jumping Fade In and Out

My current problem is when i try making a slide with text using jquery when one text fades out the other fades in but there is a gap right before fadeIn I am trying to make it smooth so it looks normal.

Code: [JSFIDDLE][1]

[1]: https://jsfiddle.net/zsvL3Lsf/

Upvotes: 0

Views: 101

Answers (1)

alcoolis
alcoolis

Reputation: 586

The problem is that the two lines of code run at almost the same time. Try this code, where you can also put a delay in the complete function if you need it.

$('#_wel').delay(2000).fadeOut( "slow", function() {
    $('#_one').fadeIn('slow');
});

Upvotes: 2

Related Questions