Topic: Sticky Javascript Code
sherylg343
pro asked 3 months ago
Expected behavior Side nav bar stick while main content scrolls
Actual behavior Scrolling with other content
Resources (screenshots, code snippets etc.) Question: I deleted some files to improve site performance and I'm concerned I deleted the jquery file with the sticky code. Can you tell me which file it is in so I can make sure I have it? $(function () { $(".sticky").sticky({ topSpacing: 128, stopper: "#footer" }); }); and sticky is a class in ul of side navigation list and footer is id of footer element. Thanks for your help! Sheryl
Krzysztof Wilk
staff answered 3 months ago
Hi!
To make this code working you have to have these file attached:
jquery.min.js, bootstrap.min.js, and mdb.min.js.
Best regards
Answered
- User: Pro
- Premium support: No
- Technology: jQuery
- MDB Version: 4.19.2
- Device: MacBook Pro
- Browser: Chrome
- OS: OS 10.12.6
- Provided sample code: No
- Provided link: No