1
$(document).ready(function() {
    $("#online_bestellen").hide();
    setTimeout(function(){
        $("#online_bestellen").show()
    }, 4000);
    $('#online_bestellen').animate({
        bottom: '-=100px'
    }, 1500, 'easeOutBounce');
});

The div called online_bestellen hides and 4 seconds it appears again but it doesn't slide in..

Who has a better option?

Dirk Jan
  • 2,355
  • 3
  • 20
  • 38
  • Apparantly I solved it myself! $(document).ready(function() { $("#online_bestellen").hide(); setTimeout(function(){$("#online_bestellen").show()},4000); $('#online_bestellen').delay(4000).animate({bottom: '-=100px'}, 1500, 'easeOutBounce'); }); – user3797701 Mar 30 '16 at 13:36
  • I noticed that you have set bottom: '-=100px', maybe it has to be bottom: '-100px' so without the =? – Dirk Jan Mar 31 '16 at 06:16
  • No, it works fine now, just as I wanted. – user3797701 Apr 01 '16 at 07:18

2 Answers2

0

Its messy, but see if it works

$(document).ready(function() {
    $("#online_bestellen").hide("fast", function(){
        $("#online_bestellen").show("fast", function(){
            $('#online_bestellen').animate({
                bottom: '-100px'
            }, 1500, 'easeOutBounce');
        })
    });    
});
Gaza
  • 427
  • 2
  • 4
  • 17
0

You could use jQuery slideup api.

Refer jQuery Easing with slideUp Easing Function

Community
  • 1
  • 1
Lohith
  • 136
  • 1
  • 4