{"id":13630954,"url":"https://github.com/ionic-team/ionic-contrib-frosted-glass","last_synced_at":"2025-12-12T04:19:24.764Z","repository":{"id":13721909,"uuid":"16416059","full_name":"ionic-team/ionic-contrib-frosted-glass","owner":"ionic-team","description":"An optional frosted-glass effect for iOS 7 styled Ionic apps.","archived":true,"fork":false,"pushed_at":"2015-05-26T17:57:55.000Z","size":8202,"stargazers_count":123,"open_issues_count":3,"forks_count":40,"subscribers_count":17,"default_branch":"master","last_synced_at":"2025-01-18T21:58:32.194Z","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-01-31T18:11:33.000Z","updated_at":"2023-01-28T08:39:37.000Z","dependencies_parsed_at":"2022-08-31T02:51:45.819Z","dependency_job_id":null,"html_url":"https://github.com/ionic-team/ionic-contrib-frosted-glass","commit_stats":null,"previous_names":["driftyco/ionic-contrib-frosted-glass"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ionic-team%2Fionic-contrib-frosted-glass","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ionic-team%2Fionic-contrib-frosted-glass/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ionic-team%2Fionic-contrib-frosted-glass/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ionic-team%2Fionic-contrib-frosted-glass/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ionic-team","download_url":"https://codeload.github.com/ionic-team/ionic-contrib-frosted-glass/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-08-01T22:02:04.399Z","updated_at":"2025-10-08T03:30:56.956Z","avatar_url":"https://github.com/ionic-team.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"Ionic Frosted Glass\n===========================\n\nAn optional frosted-glass effect for iOS 7 styled Ionic apps.\n\n[Demo here](http://ionicframework.com/demos/frosted-glass/)\n\nTo use, include `ionic.contrib.frostedGlass.css` and `ionic.contrib.frostedGlass.js` in your app.\n\nThen, apply the `frosted-bar` attribute directive to a `\u003cheader-bar\u003e` or `\u003cnav-bar\u003e` to get the frosted effect. Note: you must also\nhave a `\u003ccontent\u003e` directive on the page which is where the content will be taken from for the blur. Also, feel free to use\nthe extra class `bar-frosted` for header bars that comes with the CSS, which gives you a light grey header bar much like\niMessage:\n\n```html\n\u003cbody\u003e\n  \u003cpane ng-controller=\"PageCtrl\"\u003e\n    \u003cheader-bar frosted-bar title=\"'Title'\" type=\"bar-frosted\"\u003e\u003c/header-bar\u003e\n\n    \u003ccontent has-header=\"true\" has-footer=\"true\" padding=\"true\"\u003e\n      \u003col class=\"messages\"\u003e\n        \u003cli ng-repeat=\"message in messages\" ng-bind-html=\"message.content\"\u003e\n        \u003c/li\u003e\n      \u003c/ol\u003e\n    \u003c/content\u003e\n  \u003c/pane\u003e\n\u003c/body\u003e\n```\n\nUnfortunately, it's not feasible to auto blur the content if it changes. To notify the frosted glass system to redraw itself, you can use the `$ionicFrostedDelegate` service:\n\n```javascript\ncontroller('MyCtrl', function($scope, $ionicFrostedDelegate, $ionicScrollDelegate) {\n  $scope.addNew = function() {\n    // Add new data\n    \n    // Resize the scroll area\n    $ionicScrollDelegate.resize();\n\n    // Update the frosted glass system\n    $ionicFrostedDelegate.update();\n\n    // If you wish, scroll to the bottom of the scroll box to show the new content\n    $timeout(function() {\n      $ionicScrollDelegate.scrollBottom(true);\n    }, 1);\n  }\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fionic-team%2Fionic-contrib-frosted-glass","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fionic-team%2Fionic-contrib-frosted-glass","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fionic-team%2Fionic-contrib-frosted-glass/lists"}