79382498

Date: 2025-01-23 20:38:00
Score: 1
Natty:
Report link

Define what takes place once the element hits that offset point. To do this add a stuckClass to it. Example:

var sticky = new Waypoint.Sticky({
  element: $('#pin-last')[0], 
  stuckClass: 'stuck',       
  offset: 80                 
});

Then, in CSS add:

.stuck {
  position: fixed;
  top: 80px; 
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Website Wizards