{"id":21557088,"url":"https://github.com/shenfe/img-blur-in","last_synced_at":"2025-04-10T10:31:58.893Z","repository":{"id":57272491,"uuid":"106712192","full_name":"shenfe/img-blur-in","owner":"shenfe","description":"🖼Make images load lazily with a blur-in effect.","archived":false,"fork":false,"pushed_at":"2018-02-23T03:15:08.000Z","size":4126,"stargazers_count":34,"open_issues_count":0,"forks_count":3,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-04-24T22:42:59.430Z","etag":null,"topics":["image-loading","lazy-loading"],"latest_commit_sha":null,"homepage":"","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/shenfe.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":"2017-10-12T15:37:11.000Z","updated_at":"2023-03-14T16:33:54.000Z","dependencies_parsed_at":"2022-08-25T00:03:06.495Z","dependency_job_id":null,"html_url":"https://github.com/shenfe/img-blur-in","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shenfe%2Fimg-blur-in","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shenfe%2Fimg-blur-in/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shenfe%2Fimg-blur-in/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shenfe%2Fimg-blur-in/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shenfe","download_url":"https://codeload.github.com/shenfe/img-blur-in/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248199136,"owners_count":21063641,"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":["image-loading","lazy-loading"],"created_at":"2024-11-24T08:10:53.312Z","updated_at":"2025-04-10T10:31:58.871Z","avatar_url":"https://github.com/shenfe.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# img-blur-in\n\n![gzip size](http://img.badgesize.io/https://raw.githubusercontent.com/shenfe/img-blur-in/master/dist/img-blur-in.min.js?compression=gzip)\n\u003ca href=\"https://www.npmjs.com/package/img-blur-in\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/img-blur-in.svg\"\u003e\u003c/a\u003e\n![downloads](https://img.shields.io/npm/dm/img-blur-in.svg)\n![license](https://img.shields.io/npm/l/img-blur-in.svg)\n\nMake images load lazily, with a blur-in effect.\n\n\u003cp align=\"center\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/shenfe/img-blur-in/master/readme_assets/demo.png\" alt=\"demo\"\u003e\u003c/p\u003e\n\n## Usage\n\n### Style\n\nAdd the default style below to your CSS.\n\n```css\n.img-blur-in {\n    -webkit-filter: blur(32px);\n    -moz-filter: blur(32px);\n    -ms-filter: blur(32px);\n    -o-filter: blur(32px);\n    filter: blur(32px);\n    -webkit-transition: all ease .2s;\n    -moz-transition: all ease .2s;\n    -ms-transition: all ease .2s;\n    -o-transition: all ease .2s;\n    transition: all ease .2s;\n}\n```\n\n**Notice** If you need no CSS effects, just remove the properties. Lazy loading of images can be accomplished as well via this library.\n\n### HTML\n\nGive image tags the CSS class name. Here are three different choices:\n\n```html\n\u003cimg class=\"img-blur-in\" src=\"large.jpg\" alt=\"blur until the image is loaded\"\u003e\n\u003cimg class=\"img-blur-in\" src=\"small.jpg\" data-src=\"large.jpg\" alt=\"blur until the large image is loaded\"\u003e\n\u003cimg class=\"img-blur-in\" src=\"small.jpg\" data-src=\"large.jpg\" data-lazy=\"true\" alt=\"blur until the image is into the viewport and the large image is loaded\"\u003e\n```\n\n### JavaScript\n\nInject or import `img-blur-in`.\n\n#### inject\n\n```html\n\u003cscript src=\"//path/to/img-blur-in.js\"\u003e\u003c/script\u003e\n```\n\n#### import\n\n```bash\n$ npm install --save img-blur-in\n```\n\n```js\n/* index.js */\nrequire('img-blur-in')\n```\n\n### Customization\n\nIf you have your own CSS class name for images, use it like this:\n\n```js\nwindow.ImgBlurIn.watch('your-class');\n```\n\n## Browser Compatibility\n\n* IE10+\n* Opera 12+\n* Safari 5+\n* Chrome\n* Firefox\n* iOS 6+\n* Android 4.4+\n\n## Thanks\n\n* [sentineljs](https://github.com/muicss/sentineljs) -- Detect new DOM nodes using CSS selectors.\n\n## License\n\n[MIT](http://opensource.org/licenses/MIT)\n\nCopyright © 2017-present, [shenfe](https://github.com/shenfe)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshenfe%2Fimg-blur-in","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshenfe%2Fimg-blur-in","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshenfe%2Fimg-blur-in/lists"}