theroux / clingify Goto Github PK
View Code? Open in Web Editor NEWA very flexible jQuery plugin for sticky page elements
Home Page: http://theroux.github.io/clingify/
License: MIT License
A very flexible jQuery plugin for sticky page elements
Home Page: http://theroux.github.io/clingify/
License: MIT License
ie nav disappears when scrolling down, re-appears when scrolling up.
scrolling up implies user may want to revisit navigation. i think chrome for iOS does this.
Basically I'd just like for the sticky element to unstick once you scroll past the end of the parent container. In other words, if I have two long sections of content, I'd only like for the sticky element to stick to the first section.
I thought that something like below would stick the element only to the specified parent container:
$(function() {
$('.stickit').clingify({
placeholderClass: 'gallery-menu-container',
breakpointWidth: 830,
locked : function() {
matchOffset($navBar, $navParent);
}
});
});
onscroll only fires at the end of scrolling on iPhone/iPad, which makes the UI look laggy
Hey! Is there a way to call a function of the clingfy plugin to refresh the position of the stick element?
The reason is the following problem with the bootstrap tabs: if I switch between the tabs without scrolling, clingify works fine. Here a screenshot:
But if I scroll and then switch the tabs, the sticky element jumps to the top. If I now scroll a bit, it jumps back to its actual position:
Therefore I thought that the easiest way is to call a function after switching the tab which refresh the position of the stick element.
Love the plugin. I want to be able to add a container (or bind to that container width/position) at least. So my sticky header can be within a boxed layout. ;)
Let me know if this is possible. Thanks.
Yeah I know.
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.