How to make the jQuery Sticky Float plug-in react dynamic page height changes?

前端 未结 1 1482
闹比i
闹比i 2021-01-15 21:13

I’m currently using StickyFloat http://plugins.jquery.com/project/stickyfloat and am dynamically changing the height of the div the object sits in via jQuery, the changing o

相关标签:
1条回答
  • 2021-01-15 21:50

    I wrote this plugin, and in a mysterious way I see it was deleted from the jQuery repository just this month! anyway, I have a blog post with all information, and re-posted the plugin, and by now it was updated to work better, utilizing event namespacing.

    Stopping an item from "floating"

    It is possible to just "kill" the plugin like so:
    Note, this will kill all the floating menus if you have multiple ones.

    $(window).unbind('scroll.sticky')


    Updated blog post

    View my blogpost about this plugin which contains the links:

    http://dropthebit.com/74/sticky-floating-box/

    Update:

    The plugin now supports sticking elements to the bottom and not only to the top

    0 讨论(0)
提交回复
热议问题