{"schemaVersion":1,"id":"curtains-js","name":"Curtains.js","locale":"en","canonicalUrl":"https://base.akulich.dev/en/library/curtains-js/","officialUrl":"https://www.curtainsjs.com","isCatalog":false,"description":"Connects HTML images and videos to WebGL planes for shader transitions.","tasks":["Shader transitions between images","Interactive backgrounds based on DOM elements"],"categoryIds":["graphics"],"subcategoryIds":["graphics.webgl"],"tags":["JavaScript","WebGL"],"aliases":["martinlaxenaire/curtainsjs"],"platforms":[],"stack":[],"compatibility":null,"pricing":"free","freeUsage":"Curtains.js code is available free of charge for local and commercial projects, subject to its license.","paidUsage":"This library does not require a paid plan. Development and hosting of the finished application are separate from the free code license.","license":"MIT: permits commercial use, modification, and distribution of the code at no charge, provided the license text and copyright notice are retained.","selectionGuide":{"purpose":"Shader transitions between images","chooseWhen":["Shader transitions between images","Interactive backgrounds based on DOM elements"],"considerInstead":["When choosing for this topic, compare Curtains.js with OGL. A candidate to compare under the topic: WebGL and interactive 3D scenes. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together.","When choosing for this topic, compare Curtains.js with Three.js. A candidate to compare under the topic: WebGL and interactive 3D scenes. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together."],"requirements":["HTML/CSS/JavaScript and browser WebGL are required; a custom effect uses shaders/uniforms."],"limitations":["Costs and limits of free use: This library does not require a paid plan. Development and hosting of the finished application are separate from the free code license.","Terms of use: MIT: permits commercial use, modification, and distribution of the code at no charge, provided the license text and copyright notice are retained."],"faq":[{"question":"What can you use for free in Curtains.js?","answer":"Curtains.js code is available free of charge for local and commercial projects, subject to its license."},{"question":"What additional costs might arise with Curtains.js?","answer":"This library does not require a paid plan. Development and hosting of the finished application are separate from the free code license."},{"question":"What terms of use matter for Curtains.js?","answer":"MIT: permits commercial use, modification, and distribution of the code at no charge, provided the license text and copyright notice are retained."},{"question":"How do you get started with Curtains.js?","answer":"Check the project's stack and version against the current Curtains.js documentation; add the package or the required source component. Implement the selected workflow with the supplied data, adapting styles and states to the project. Check the result in the target environment, remove sample data, and retain the notices required by the license."},{"question":"How do I connect a WebGL effect to ordinary HTML layout?","answer":"Curtains.js turns HTML images and videos into textures on WebGL planes, preserving their dimensions and positioning through CSS. ShaderPass adds post-processing, and RenderTarget provides an intermediate buffer. React has a separate react-curtains integration; this does not make every example a built-in React component."}],"related":[{"id":"ogl","reason":"A candidate to compare under the topic: WebGL and interactive 3D scenes. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together."},{"id":"three-js","reason":"A candidate to compare under the topic: WebGL and interactive 3D scenes. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together."}],"sources":["https://www.curtainsjs.com","https://github.com/martinlaxenaire/curtainsjs","https://github.com/martinlaxenaire/curtainsjs/blob/master/README.md","https://github.com/martinlaxenaire/curtainsjs/blob/master/LICENSE.txt","https://raw.githubusercontent.com/martinlaxenaire/curtainsjs/master/README.md","https://raw.githubusercontent.com/martinlaxenaire/curtainsjs/master/LICENSE.txt"]},"selectionCheckedAt":null,"applicationGuide":{"goal":"Shader transitions between images with Curtains.js.","inputs":["A working JavaScript; WebGL project and a specific use case: shader transitions between images.","A design, interface states, or dataset; target screens and accessibility requirements."],"steps":["Check the project's stack and version against the current Curtains.js documentation; add the package or the required source component.","Implement the selected workflow with the supplied data, adapting styles and states to the project.","Check the result in the target environment, remove sample data, and retain the notices required by the license."],"checks":["The example works in the chosen tech stack, including target dimensions and input errors.","Dependency size, keyboard behavior, and reduced motion suit the task; license terms are met."]},"sources":["https://www.curtainsjs.com","https://github.com/martinlaxenaire/curtainsjs","https://github.com/martinlaxenaire/curtainsjs/blob/master/README.md","https://github.com/martinlaxenaire/curtainsjs/blob/master/LICENSE.txt","https://raw.githubusercontent.com/martinlaxenaire/curtainsjs/master/README.md","https://raw.githubusercontent.com/martinlaxenaire/curtainsjs/master/LICENSE.txt"],"checkedAt":"2026-10-06","reviewScope":"Purpose, published primary source code/documentation, and license terms were reviewed. An example was not run in a local project.","relatedIds":["three-js","ogl"],"dataVersion":"cbbe7123b47a5ae80983","type":"Development library / tool","kind":"library","pricingNote":"Curtains.js code is available free of charge for local and commercial projects, subject to its license. This library does not require a paid plan. Development and hosting of the finished application are separate from the free code license.","notes":null,"labeledSources":[{"url":"https://www.curtainsjs.com","label":"Official website"},{"url":"https://github.com/martinlaxenaire/curtainsjs","label":"Source code"},{"url":"https://github.com/martinlaxenaire/curtainsjs/blob/master/README.md","label":"Documentation and use"},{"url":"https://github.com/martinlaxenaire/curtainsjs/blob/master/LICENSE.txt","label":"License"},{"url":"https://raw.githubusercontent.com/martinlaxenaire/curtainsjs/master/README.md","label":"Official source"},{"url":"https://raw.githubusercontent.com/martinlaxenaire/curtainsjs/master/LICENSE.txt","label":"Official source"}],"licenseGuides":[{"id":"mit","title":"MIT — permissive license","scope":null,"summary":"You can use, modify, distribute, and sell the code, including in a closed-source commercial product. When sharing copies or substantial portions of the code, retain the license text and copyright notice. You do not need to open-source your entire project; the author provides no warranties.","url":"https://opensource.org/license/mit"}],"entryIds":[],"composition":null}