Skip to content

directive makes element stick when scrolling down and if it's height bigger when viewport when it is scrolls to bottom when scrolling down and vice versa

Notifications You must be signed in to change notification settings

js-padavan/ng-sticky-float-container

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ng-sticly-float-container

a simple directive which makes element stick to the top when scrolling down and if it's height bigger when window height when it is scrolls to bottom when scrolling down and vice versa

Demo

http://js-padavan.github.io/ng-sticky-float-container/

Installation

  bower install ng-sticky-float-container

How To Use

  • include ng-sticky-float-container.js file
  • add dependency to your module, example:
angular.module('myApp', ['ng-sticky'])
  • position your container with {position: fixed } !!! it is important to use fixed positioning !!!
  • add ng-sticky-float-container directive to your element
<style>
    .container {
        position: fixed;
        top: 100px;
        left: 200px;
    }
</style>
 <div class="container" ng-sticky-float-container></div>

About

directive makes element stick when scrolling down and if it's height bigger when viewport when it is scrolls to bottom when scrolling down and vice versa

Resources

Stars

Watchers

Forks

Packages

No packages published