sticky-div
sticky-div copied to clipboard
Several improvements to the plugin :)
I've made several improvements. Please see the full commit list and individual commit change in the Commits tab. To summarize:
- Added an option to support extended styles. (Author: tater9104)*
- Prettify and reformat the README file
- Refactor the lengthy if condition into multiple lines (same effect, cleaner code)
- Always call the method when resizing. Method to check minimum width.
- Add new option for minimum screen height
- Store and use window width/height from variables
- Add the new option min_screen_height in the README file
- Use a common function and call it for both scroll and resize (so that resizing can also stick/unstick the sticky)
* Committer Notes for commit 5628100: Changes from the fork repo tater9104/sticky-div were ported here without altering the indentation of the original source. I think this enhances the plugin by being able to apply custom styles on the div when it sticks (like giving it a shadow or a different background color).
No love? :(
Edit: I should have known that this project is abandoned more than 4 years ago. Such a shame, considering I found it really useful.