{"id":20489286,"url":"https://github.com/sh20raj/blurryimageloader","last_synced_at":"2025-04-13T16:32:47.026Z","repository":{"id":230797146,"uuid":"780213145","full_name":"SH20RAJ/BlurryImageLoader","owner":"SH20RAJ","description":"A JavaScript library for loading images with a blur effect.","archived":false,"fork":false,"pushed_at":"2024-04-01T02:53:16.000Z","size":26,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-09T14:43:08.864Z","etag":null,"topics":["image-loading-library","javascript"],"latest_commit_sha":null,"homepage":"https://sh20raj.github.io/BlurryImageLoader/","language":"HTML","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/SH20RAJ.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-01T01:48:27.000Z","updated_at":"2024-06-24T19:31:57.000Z","dependencies_parsed_at":"2024-10-30T02:28:27.198Z","dependency_job_id":null,"html_url":"https://github.com/SH20RAJ/BlurryImageLoader","commit_stats":null,"previous_names":["sh20raj/blurryimageloader"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SH20RAJ%2FBlurryImageLoader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SH20RAJ%2FBlurryImageLoader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SH20RAJ%2FBlurryImageLoader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SH20RAJ%2FBlurryImageLoader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SH20RAJ","download_url":"https://codeload.github.com/SH20RAJ/BlurryImageLoader/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224816226,"owners_count":17374684,"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-library","javascript"],"created_at":"2024-11-15T17:12:09.791Z","updated_at":"2024-11-15T17:12:10.770Z","avatar_url":"https://github.com/SH20RAJ.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BlurryImageLoader\n\n[![Visitors](https://api.visitorbadge.io/api/visitors?path=https%3A%2F%2Fgithub.com%2FSH20RAJ%2FBlurryImageLoader%2F\u0026labelColor=%23ff8a65\u0026countColor=%23d9e3f0\u0026style=flat)](https://visitorbadge.io/status?path=https%3A%2F%2Fgithub.com%2FSH20RAJ%2FBlurryImageLoader%2F)\n![GitHub](https://img.shields.io/github/license/SH20RAJ/BlurryImageLoader?)\n![GitHub last commit](https://img.shields.io/github/last-commit/SH20RAJ/BlurryImageLoader)\n![GitHub issues](https://img.shields.io/github/issues/SH20RAJ/BlurryImageLoader)\n![GitHub pull requests](https://img.shields.io/github/issues-pr/SH20RAJ/BlurryImageLoader)\n![GitHub stars](https://img.shields.io/github/stars/SH20RAJ/BlurryImageLoader?style=social)\n[![](https://data.jsdelivr.com/v1/package/gh/sh20raj/BlurryImageLoader/badge)](https://www.jsdelivr.com/package/gh/sh20raj/BlurryImageLoader)\n[![npm version](https://img.shields.io/npm/v/blurry-image-loader\n)](https://npmjs.com/blurry-image-loader)\n\nA JavaScript library for loading images with a blur effect. \n\n[Demo](https://sh20raj.github.io/BlurryImageLoader/demo.html) | [Codepen](https://codepen.io/SH20RAJ/pen/oNOozqW?editors=1010)\n\n## Description\n\n`BlurryImageLoader` is a lightweight JavaScript library that simplifies the process of loading images with a blur effect, providing a smooth transition from blurred placeholders to clear images.\n\n## Features\n\n- Automatically applies a blur effect to images while they are loading.\n- Supports images with `data-src` attributes (for lazy loading) or regular `src` attributes.\n- Provides a clean API for easy integration into projects.\n\n## Installation\n\n### Via npm\n\nYou can install `BlurryImageLoader` using npm:\n\n```bash\nnpm install blurry-image-loader\n```\n\n### Using jsDelivr CDN\n\nYou can also include `BlurryImageLoader` in your HTML directly from the jsDelivr CDN:\n\n```html\n\u003c!-- Latest version --\u003e\n\u003cscript src=\"https://cdn.jsdelivr.net/gh/SH20RAJ/BlurryImageLoader@latest/BlurryImageLoader.js\"\u003e\u003c/script\u003e\n```\nor\n```html\n\u003c!-- Specific version with npm (replace 1.0.1 with the version you need) --\u003e\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/blurry-image-loader@1.0.1\"\u003e\u003c/script\u003e\n```\nor\n```html\n\u003c!-- Specific version with npm (replace 1.0.1 with the version you need) --\u003e\n\u003cscript defer async src=\"https://unpkg.com/blurry-image-loader\"\u003e\u003c/script\u003e\n```\n\n## Usage\n\n### Loading Specific Images\n\nTo load specific images with a blur effect, use `loadImageWithBlur`:\n\n```javascript\nvar img = document.getElementById('blurImage');\nBlurryImageLoader.loadImageWithBlur(img);\n```\n\n### Loading All Images\n\nTo load all images on a page with a blur effect, use `loadAllImagesWithBlur`:\n\n```javascript\nBlurryImageLoader.loadAllImagesWithBlur();\n```\n\n### Using Selectors:\n\n```javascript\n// Load all images with class .blurry-image\nBlurryImageLoader.loadAllImagesWithBlur('.blurry-image');\n```\n\n### Example HTML\n\n```html\n\u003cdiv class=\"image-container\"\u003e\n    \u003c!-- Example with data-src attribute --\u003e\n    \u003cimg class=\"blurry-image\" data-src=\"path/to/image.jpg\" alt=\"Image\"\u003e\n\u003c/div\u003e\n\n\u003cdiv class=\"image-container\"\u003e\n    \u003c!-- Example with regular src attribute --\u003e\n    \u003cimg class=\"blurry-image\" src=\"path/to/image.jpg\" alt=\"Image\"\u003e\n\u003c/div\u003e\n```\n\n## Usage in Node.js\n\nYou can also use `BlurryImageLoader` in Node.js environments. Here's an example:\n\n```javascript\nconst BlurryImageLoader = require('./blurry-image-loader');\n\n// Example usage in Node.js\nconst images = [\n    'path/to/image1.jpg',\n    'path/to/image2.jpg',\n    'path/to/image3.jpg'\n];\n\nBlurryImageLoader.loadAllImagesWithBlur(images);\n```\n\nYou can use the cdn in Node.js or NextJS accordingly.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## Contribution\n\nContributions are welcome! Fork the repository, make your changes, and submit a pull request.\n\n## Issues and Support\n\nIf you encounter any issues or need support, please [open an issue](https://github.com/SH20RAJ/BlurryImageLoader/issues).\n\n## Credits\n\nThis library was created by [SH20RAJ](https://github.com/SH20RAJ).\n\n---\n\nFeel free to give a ⭐️ if this project helped you!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsh20raj%2Fblurryimageloader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsh20raj%2Fblurryimageloader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsh20raj%2Fblurryimageloader/lists"}