on scroll add class on nexlt li
See the Pen on scroll add class on nexlt li by w3codemasters (@w3codemasters) on CodePen.
See the Pen on scroll add class on nexlt li by w3codemasters (@w3codemasters) on CodePen.
if you need scroll to whole popup (class=”modal”): $(function () { $(‘.modal’).scroll(function () { var totop = 50; if ($(this).scrollTop() >= totop) { $(“.mycountry”).addClass(“fix”); } else { $(“.mycountry”).removeClass(“fix”); } }); }); if you need scroll to modal content (class=”modal-content”): $(function () { $(‘.modal-content’).scroll(function () { var totop = 50; if ($(this).scrollTop() >= totop) { $(“.mycountry”).addClass(“fix”); … Read more