Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $('.element').waypoint(function(direction){
- if(direction == 'down'){
- $(this).addClass('active');
- }else{
- $(this).removeClass('active');
- }
- },{offset:'100%'});
- .sticky-container.active .stick-me {
- position:relative;
- }
- .sticky-container .stick-me {
- background: blue;
- height: 50px;
- position:fixed;
- bottom:0;
- }
- .content {
- height: 1000px;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement