0 %

HIDE DIV WHEN REACH BOTTOM OF PAGE

HIDE DIV WHEN REACH BOTTOM OF PAGE
<script type="text/javascript">
 jQuery(document).ready(function(){
  jQuery(window).scroll(function() {
   if (jQuery('body').height() <= (jQuery(window).height() + jQuery(window).scrollTop())) {
    jQuery('#followwidget').hide();
   }else{
    jQuery("#followwidget").show();
   }
  });
 });
</script>

To make the div fade in/out please make the following replacements in the code:

1. Replace this line:

jQuery('#followwidget').hide();

with this:

jQuery('#followwidget').fadeOut("slow");

2. Replace this line:

jQuery("#followwidget").show();

with this:

jQuery("#followwidget").fadeIn("slow");
Việt Lâm Coder

Việt Lâm Coder

Senior Fullstack & System Architect

Cần hỗ trợ website? Gọi / Zalo 0944.71.4545.

Trao đổi về dự án của bạn!

VietLamCoder CMS — Nền Tảng Quản Trị Flat-File Siêu Tốc LamWeb.com.vn — Hệ Sinh Thái Thiết Kế Web & Kho Giao Diện 2026