cheald / floatingfixed Goto Github PK
View Code? Open in Web Editor NEWSimple jQuery plugin to simplify toggling an element between fixed and absolute positioning based on window scroll
Simple jQuery plugin to simplify toggling an element between fixed and absolute positioning based on window scroll
This is a quick little jQuery plugin to provide "sticky rail" functionality. Call $.floatingFixed() on an element that is position: absolute, and when the element would scroll off the screen, it will instead be "stuck" on the screen, and will return to its original position when you scroll it back into view. See example.html for more details.
FloatingFixed was throwing an error if the element was removed from the page because the scroll method was not unbinding. I edited my fork to unbind
if windowScroll
throws an error (ie the element is removed from the page) which works as expected but when I try to run floatingFixed
again, it throws another error because I believe it is still looking for the removed element.
I would really like to utilize your plugin and am open to any suggestions on getting this working correctly when elements are added and removed from a page(ie backbone.js application).
Thx
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.