{"id":15097947,"url":"https://github.com/ionic-team/ionic-ion-header-shrink","last_synced_at":"2025-12-12T04:39:19.205Z","repository":{"id":15157555,"uuid":"17885149","full_name":"ionic-team/ionic-ion-header-shrink","owner":"ionic-team","description":"A demo of making a header that shrinks based on the user scrolling (like Facebook's iOS app).","archived":true,"fork":false,"pushed_at":"2015-09-29T12:48:00.000Z","size":8220,"stargazers_count":159,"open_issues_count":8,"forks_count":67,"subscribers_count":18,"default_branch":"master","last_synced_at":"2025-01-18T21:58:33.230Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ionic-team.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-03-18T23:07:31.000Z","updated_at":"2024-12-02T18:13:48.000Z","dependencies_parsed_at":"2022-08-01T01:17:52.991Z","dependency_job_id":null,"html_url":"https://github.com/ionic-team/ionic-ion-header-shrink","commit_stats":null,"previous_names":["driftyco/ionic-ion-header-shrink"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ionic-team%2Fionic-ion-header-shrink","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ionic-team%2Fionic-ion-header-shrink/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ionic-team%2Fionic-ion-header-shrink/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ionic-team%2Fionic-ion-header-shrink/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ionic-team","download_url":"https://codeload.github.com/ionic-team/ionic-ion-header-shrink/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235678929,"owners_count":19028301,"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":"2024-09-25T16:41:32.751Z","updated_at":"2025-10-08T03:30:48.411Z","avatar_url":"https://github.com/ionic-team.png","language":"JavaScript","readme":"Ionic Ion Header Shrink\n===========================\n\nAn Ion for making a header that shrinks based on the user scrolling (like Facebook's iOS app).\n\nTo use this, add a `\u003cion-header-bar\u003e` and a `\u003cion-content\u003e`. Add the `header-shrink` attribute to the `\u003cion-content\u003e` element:\n\n```html\n\u003cion-header-bar class=\"bar-positive\"\u003e\n  \u003cdiv class=\"buttons\"\u003e\n    \u003cbutton class=\"button button-icon ion-navicon\"\u003e\u003c/button\u003e\n  \u003c/div\u003e\n  \u003ch1 class=\"title\"\u003eThings\u003c/h1\u003e\n\u003c/ion-header-bar\u003e\n\u003cion-content header-shrink\u003e\n\u003c/ion-content\u003e\n```\n\nIt's also useful to add an empty spacer element inside the content to make sure it doesn't go up under the bar:\n\n```html\n\u003cion-content\u003e\n  \u003cdiv style=\"height: 50px\"\u003e\u003c/div\u003e\n\u003c/ion-content\u003e\n```\n\nAlso make sure to include the `ionic.ion.headerShrink` angular module in your app.\n\nNote, this should also work with an `\u003cion-nav-bar\u003e`.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fionic-team%2Fionic-ion-header-shrink","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fionic-team%2Fionic-ion-header-shrink","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fionic-team%2Fionic-ion-header-shrink/lists"}