{"id":22377055,"url":"https://github.com/jerosoler/3dbox","last_synced_at":"2025-03-26T18:18:46.935Z","repository":{"id":65478886,"uuid":"340959734","full_name":"jerosoler/3dbox","owner":"jerosoler","description":"🎨 CSS Houdini 3D Box","archived":false,"fork":false,"pushed_at":"2021-02-21T17:28:28.000Z","size":17,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-14T13:51:56.240Z","etag":null,"topics":["3d","css","css-houdini","csshoudini","houdini","paintworklet"],"latest_commit_sha":null,"homepage":"https://jerosoler.github.io/3dbox/","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/jerosoler.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":"2021-02-21T17:23:49.000Z","updated_at":"2023-09-06T08:19:14.000Z","dependencies_parsed_at":"2023-01-25T08:05:18.104Z","dependency_job_id":null,"html_url":"https://github.com/jerosoler/3dbox","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/jerosoler%2F3dbox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jerosoler%2F3dbox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jerosoler%2F3dbox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jerosoler%2F3dbox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jerosoler","download_url":"https://codeload.github.com/jerosoler/3dbox/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245708992,"owners_count":20659626,"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":["3d","css","css-houdini","csshoudini","houdini","paintworklet"],"created_at":"2024-12-04T22:12:35.762Z","updated_at":"2025-03-26T18:18:46.915Z","avatar_url":"https://github.com/jerosoler.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![GitHub license](https://img.shields.io/github/license/jerosoler/3dbox)](https://github.com/jerosoler/3dbox/blob/main/LICENSE)\n\n\n[PLAY](https://jerosoler.github.io/3dbox/)\n\n![Demo](https://github.com/jerosoler/3dbox/raw/master/docs/3dbox.png)\n\n## CDN\n```html\n\u003cscript src=\"https://cdn.jsdelivr.net/gh/jerosoler/3dbox/THREEDBox.js\"\u003e\u003c/script\u003e\n```\n\n## NPM \n```bash\nnpm install threedbox\n```\n\n## How to use\n\nDownload `THREEDBox.js` file.\n\n### Javascript:\n```javascript\nif ('paintWorklet' in CSS \u0026\u0026 'registerProperty' in CSS \u0026\u0026 'CSSUnitValue' in window) {\n    CSS.registerProperty({\n        name: '--threedbox-angle-vertical',\n        syntax: '\u003clength\u003e',\n        initialValue: '10px',\n        inherits: false\n    });\n    CSS.registerProperty({\n        name: '--threedbox-angle-horitzontal',\n        syntax: '\u003clength\u003e',\n        initialValue: '10px',\n        inherits: false\n    });\n    CSS.registerProperty({\n        name: '--threedbox-padding',\n        syntax: '\u003clength\u003e',\n        initialValue: '50px',\n        inherits: false\n    });\n    CSS.registerProperty({\n        name: '--threedbox-color',\n        syntax: '\u003ccolor\u003e',\n        initialValue: '#ffffff',\n        inherits: false\n    });\n    CSS.registerProperty({\n        name: '--threedbox-color-back',\n        syntax: '\u003ccolor\u003e',\n        initialValue: '#ffffff',\n        inherits: false\n    });\n    CSS.registerProperty({\n        name: '--threedbox-color-border',\n        syntax: '\u003ccolor\u003e',\n        initialValue: '#ffffff',\n        inherits: false\n    });\n\n    CSS.paintWorklet.addModule('THREEDBox.js');\n} else {\n    console.log(\"Not Supported\");\n    alert(\"Not Supported\");\n}\n```\n\n### CSS \n```css\ndiv {\n    padding: 50px;\n    --threedbox-color: #ff7d64;\n    --threedbox-color-back: #a32107;\n    --threedbox-color-border: #ff0000;\n    --threedbox-angle-vertical: 15px;\n    --threedbox-angle-horitzontal: -15px;\n    --threedbox-padding: 50px;\n    background-image: paint(threedbox);\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjerosoler%2F3dbox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjerosoler%2F3dbox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjerosoler%2F3dbox/lists"}