Stumble upon best personal Finance fixed block to the end of the page?

Hello all and thanks in advance for the answer!
You need to at the moment when fixed_bot reaches the top border of the footer > is added to the class: "go-top--bottom" at fixed_bot
The class itself does fixed_bot static and not fixed
Jsfiddle code
Watch the video to understand what the problem is
How can I remove this pulling?
June 26th 19 at 14:14
1 answer
June 26th 19 at 14:16
Line to replace:
var footerTop = $('.page-footer').offset(3000).top;

The problem is that You have initialization function is constantly that it adds the class go-top--bottom, then removed
joxi.ru/l2ZNg7WSwLKRG2
So it is impossible - Augustus_Rohan91 commented on June 26th 19 at 14:19
:
var footerTop = ($('.page-footer').offset().top = 4000);
- Izabella commented on June 26th 19 at 14:22
: but this option is not suitable because it is a fixed value from the top. This unit will be on different pages with different height. - Augustus_Rohan91 commented on June 26th 19 at 14:25

Find more questions by tags jQueryJavaScript