{"id":25310357,"url":"https://github.com/maxisam/angular-bootstrap-affix","last_synced_at":"2025-10-28T15:30:26.691Z","repository":{"id":9751429,"uuid":"11716028","full_name":"maxisam/angular-bootstrap-affix","owner":"maxisam","description":"Affix directive for AngularJS inspired by Twitter Bootstrap","archived":false,"fork":false,"pushed_at":"2017-05-09T17:31:50.000Z","size":24,"stargazers_count":28,"open_issues_count":1,"forks_count":31,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-30T00:22:24.408Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/maxisam.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-07-28T06:09:18.000Z","updated_at":"2024-01-30T00:09:59.000Z","dependencies_parsed_at":"2022-09-02T10:11:07.327Z","dependency_job_id":null,"html_url":"https://github.com/maxisam/angular-bootstrap-affix","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxisam%2Fangular-bootstrap-affix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxisam%2Fangular-bootstrap-affix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxisam%2Fangular-bootstrap-affix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxisam%2Fangular-bootstrap-affix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maxisam","download_url":"https://codeload.github.com/maxisam/angular-bootstrap-affix/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238667921,"owners_count":19510495,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-13T13:54:46.724Z","updated_at":"2025-10-28T15:30:21.373Z","avatar_url":"https://github.com/maxisam.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bootstrap.affix\n\nPure AngularJS component replicating [Twitter Bootstrap's Affix](http://getbootstrap.com/javascript/#affix) component behavior.\nThe affix behavior enables dynamic pinning of a DOM element during page scrolling when specific conditions are met.\n\n## Getting Started\n\n+ Install with bower, `bower install angular-bootstrap-affix --save`\n\n+ Or download the [production version][min] or the [development version][max].\n\n[min]: https://raw.github.com/mgcrea/jquery-bootstrap-affix/master/dist/angular-bootstrap-affix.min.js\n[max]: https://raw.github.com/mgcrea/jquery-bootstrap-affix/master/dist/angular-bootstrap-affix.js\n\nIn your web page:\n\n```html\n\u003cscript src=\"bower_components/angular/angular.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"bower_components/angular-jquery/dist/angular-jquery.min.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"bower_components/angular-bootstrap-affix/dist/angular-bootstrap-affix.min.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"scripts/app.js\"\u003e\u003c/script\u003e\n```\n\nIn your app.js:\n\n```js\nangular.module('myApp', ['mgcrea.bootstrap.affix'])\n```\n\n## Documentation\n\n+ To easily add affix behavior to any element, just add `bs-affix` to the element you want to spy on. Then use offsets to define when to toggle the pinning of an element on and off.\n\n+ Check [Twitter Bootstrap's Affix](http://getbootstrap.com/javascript/#affix) docs.\n\n## Examples\n\n```html\n\u003cdiv class=\"iphone\" bs-affix data-offset-top=\"200\" data-offset-bottom=\"300\"\u003e\n  \u003cdiv class=\"iphone-content\"\u003e\n  \u003c/div\u003e\n\u003c/div\u003e\n\n.affix-top {\n    top: 30px; // css to define\n}\n\n.affix-bottom {\n    bottom: 0; // css to define\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxisam%2Fangular-bootstrap-affix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaxisam%2Fangular-bootstrap-affix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxisam%2Fangular-bootstrap-affix/lists"}