$('#scroll_screen').height() - $('#content').height()
will give a negative value, because scroll_screen
's height is always less than content
's height, and that means scroll_screen
's scrollTop
will never be equal to a negative value, so replace
$('#scroll_screen').scrollTop() == $('#scroll_screen').height() - $('#content').height()
with
$('#scroll_screen').scrollTop() >= if ( $('#scroll_screen').scrollTop() >= -($('#content').height() - $('#scroll_screen').height()) ))
(Greater than or equal just in-case the animation skips it.)
[EDIT] I noticed it scrolls to 200
, so if ($('#scroll_screen').scrollTop() >= 200)
should work.