Fixed block disappears at the end of the page?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
11 views
5ae2d84ff33cb729125700.png
xn--35-vlcherag2a.xn--p1ai/katalog-potolkov/tkanev...
You need to do to make it not disappear, but before reaching this place there remained
by | 11 views

2 Answers

0 like 0 dislike
For such effects, use position: sticky

\rhttps://developer.mozilla.org/en-US/docs/Web/CSS/p...
by
0 like 0 dislike
Seeing Your screenshot, on the same resource is shown below the code. And then dabble with the class
$(function(){
var topPos = $('.floating').offset().top;
$(window).scroll(function() {
var top = $(document).scrollTop(),
pip = $('.footer').offset().top
height = $('.floating').outerHeight();
if (top > topPos && top < pip - height) {$('.floating').addClass('fixed').removeAttr("style");}
else if (top > pip - height) {$('.floating').removeClass('fixed').css({'position':'absolute','bottom':'0'});}
else {$('.floating').removeClass('fixed');}
});
});
by

Related questions

0 like 0 dislike
2 answers
0 like 0 dislike
1 answer
asked May 23, 2019 by Web__Nikita03
110,608 questions
257,186 answers
0 comments
35,593 users