Created
August 18, 2018 10:56
-
-
Save Artisan-Asad/2e38fb5ab3b88533b879a8a08acbe656 to your computer and use it in GitHub Desktop.
Give shadow to upper element on scroll
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('.scroll-container').on('scroll',function(e) { | |
var currentScrollPosition= $('.scroll-container').scrollTop() + $('.scroll-container').height(); | |
if (currentScrollPosition == $('.scroll-container').height()) { | |
$('.fe-mdm-favorites').removeClass('shadow-bottom'); | |
} else { | |
$('.fe-mdm-favorites').addClass('shadow-bottom'); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment