How to use more than one jQuery function/action?
Hello,
I think my problem is just the way I am writing these two jQuery functions that is the issue, because my first one worked on its own until I tried adding in the second one - now neither will work. I don't necessarily want these events to happen at the same time, but want them both to happen, if that makes sense. Can anyone help me with how I am formatting this?
- <script>
- $(document).ready(function() {
- var bodyHeight = $('body').height();
- var footerOffsetTop = $('#moving').offset().top;
- var topToBottom = bodyHeight - footerOffsetTop - $('#moving').outerHeight();
- $("#moving").delay(2000).animate({top: topToBottom,
- }, 800);
- }
- function () {
- $("#enter").fadeIn(10000);
- }
- }):
- </script>