{"id":15673788,"url":"https://github.com/jaydenseric/focal","last_synced_at":"2025-05-07T09:06:27.690Z","repository":{"id":20471854,"uuid":"23749413","full_name":"jaydenseric/Focal","owner":"jaydenseric","description":"Simulates a camera focus within a CSS 3D transform powered scene using CSS blur filters.","archived":false,"fork":false,"pushed_at":"2014-12-25T08:29:06.000Z","size":268,"stargazers_count":13,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-05-07T09:06:13.243Z","etag":null,"topics":[],"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/jaydenseric.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-09-07T00:59:56.000Z","updated_at":"2024-10-22T13:29:16.000Z","dependencies_parsed_at":"2022-08-28T19:12:43.082Z","dependency_job_id":null,"html_url":"https://github.com/jaydenseric/Focal","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/jaydenseric%2FFocal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaydenseric%2FFocal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaydenseric%2FFocal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaydenseric%2FFocal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jaydenseric","download_url":"https://codeload.github.com/jaydenseric/Focal/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252847491,"owners_count":21813453,"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-10-03T15:42:07.656Z","updated_at":"2025-05-07T09:06:27.660Z","avatar_url":"https://github.com/jaydenseric.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jQuery Focal\n\nSimulates a camera focus within a CSS 3D transform powered scene, by blurring layers (using CSS filters) according to proximity to the focal point (determined via `translateZ` values).\n\n## Demo\n\nTry out *demo.html* [via RawGit](http://rawgit.com/jaydenseric/Focal/master/demo.html).\n\n\u003cimg src=\"screenshot.png\" alt=\"Screenshot of the jQuery Focal demo in Safari\" width=\"728\" /\u003e\n\n## Browser support\n\n- Chrome 18+\n- Safari 6+\n- Firefox 35+\n- Opera 15+\n\nDependant on [CSS `filter` support](http://caniuse.com/#feat=css-filters), specifically `blur`.\n\nWorks fine in Chrome and beautifully in Safari. Firefox won't support filters by default [until version 35](https://developer.mozilla.org/en-US/docs/Web/CSS/filter#Browser_compatibility). IE is a bummer as usual, although Microsoft says [it's on the way](https://status.modern.ie/filters).\n\n## Usage\n\nRefer to *demo.html* for a working example.\n\nIn the HTML, create a container and apply a CSS `perspective` in pixels.\n\nAdd scene layers to the container with varying CSS transform `translateZ` values. Scene layers must be child to the container as nested transforms are not yet supported.\n\nIf desired, set a transition for the blur on all layers:\n\n```css\n#container \u003e * {\n\ttransition: all 1s;\n}\n```\n\nTo set a container's focal point on a layer with the id `layer-1`:\n\n```javascript\n$('#container').focalPoint($('#layer-1'));\n```\n\nAgain, setting the `maxBlur` option (the blurriest near and far layers may appear) a bit sharper than default:\n\n```javascript\n$('#layer').focalPoint($('#layer-1'), {\n\tmaxBlur: 5\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaydenseric%2Ffocal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaydenseric%2Ffocal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaydenseric%2Ffocal/lists"}