# Curtains\.js

[BASE product page](<https://base.akulich.dev/en/library/curtains-js/>) · [Resource](<https://www.curtainsjs.com>)

ID: curtains\-js · Language: en
Schema version: 1 · Data version: cbbe7123b47a5ae80983

This is editorial data. An unknown field neither confirms nor rules out a capability.
dataVersion is a dataset fingerprint, not evidence of a recent fact check.

Connects HTML images and videos to WebGL planes for shader transitions\.

## Type

Development library / tool

## Entry type

library

## Separate catalog

No

## [Access conditions](<https://base.akulich.dev/en/library/curtains-js/#resource-access>)

free

## [What you can use for free](<https://base.akulich.dev/en/library/curtains-js/#resource-access>)

Curtains\.js code is available free of charge for local and commercial projects, subject to its license\.

## [Paid features and costs](<https://base.akulich.dev/en/library/curtains-js/#resource-access>)

This library does not require a paid plan\. Development and hosting of the finished application are separate from the free code license\.

## [Access and limitations](<https://base.akulich.dev/en/library/curtains-js/#resource-access>)

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\.

## [Use cases](<https://base.akulich.dev/en/library/curtains-js/#resource-tasks>)

- Shader transitions between images
- Interactive backgrounds based on DOM elements

## Category IDs

- graphics

## Subcategory IDs

- graphics\.webgl

## Tags

- JavaScript
- WebGL

## Also known as

- martinlaxenaire/curtainsjs

## [Selection purpose](<https://base.akulich.dev/en/library/curtains-js/#resource-selection>)

Shader transitions between images

## [Choose this when](<https://base.akulich.dev/en/library/curtains-js/#resource-selection>)

- Shader transitions between images
- Interactive backgrounds based on DOM elements

## [Consider alternatives when](<https://base.akulich.dev/en/library/curtains-js/#resource-selection>)

- 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](<https://base.akulich.dev/en/library/curtains-js/#resource-selection>)

- HTML/CSS/JavaScript and browser WebGL are required; a custom effect uses shaders/uniforms\.

## [Limitations](<https://base.akulich.dev/en/library/curtains-js/#resource-selection>)

- 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\.

## [Questions before use](<https://base.akulich.dev/en/library/curtains-js/#resource-faq>)

### What can you use for free in Curtains\.js?

Curtains\.js code is available free of charge for local and commercial projects, subject to its license\.

### What additional costs might arise with Curtains\.js?

This library does not require a paid plan\. Development and hosting of the finished application are separate from the free code license\.

### What terms of use matter for Curtains\.js?

MIT: permits commercial use, modification, and distribution of the code at no charge, provided the license text and copyright notice are retained\.

### How do you get started with Curtains\.js?

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\.

### How do I connect a WebGL effect to ordinary HTML layout?

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 resources selected by editors

- 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\.
- 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\.

## Sources for the selection guide

- [https://www\.curtainsjs\.com](<https://www.curtainsjs.com>)
- [https://github\.com/martinlaxenaire/curtainsjs](<https://github.com/martinlaxenaire/curtainsjs>)
- [https://github\.com/martinlaxenaire/curtainsjs/blob/master/README\.md](<https://github.com/martinlaxenaire/curtainsjs/blob/master/README.md>)
- [https://github\.com/martinlaxenaire/curtainsjs/blob/master/LICENSE\.txt](<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/README.md>)
- [https://raw\.githubusercontent\.com/martinlaxenaire/curtainsjs/master/LICENSE\.txt](<https://raw.githubusercontent.com/martinlaxenaire/curtainsjs/master/LICENSE.txt>)

## [Possible workflow](<https://base.akulich.dev/en/library/curtains-js/#resource-scenario>)

Shader transitions between images with Curtains\.js\.

A possible workflow; this is not a report of hands-on testing.

## Before you start

- 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

1. Check the project's stack and version against the current Curtains\.js documentation; add the package or the required source component\.
2. Implement the selected workflow with the supplied data, adapting styles and states to the project\.
3. Check the result in the target environment, remove sample data, and retain the notices required by the license\.

## Check your result

- 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\.

## [License](<https://base.akulich.dev/en/library/curtains-js/#resource-license>)

MIT: permits commercial use, modification, and distribution of the code at no charge, provided the license text and copyright notice are retained\.

## License explanations for the specified scope

### MIT — permissive license

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\.

[License terms](<https://opensource.org/license/mit>)

## Related resource IDs

- three\-js
- ogl

## [Sources](<https://base.akulich.dev/en/library/curtains-js/#resource-sources>)

- [Official website](<https://www.curtainsjs.com>)
- [Source code](<https://github.com/martinlaxenaire/curtainsjs>)
- [Documentation and use](<https://github.com/martinlaxenaire/curtainsjs/blob/master/README.md>)
- [License](<https://github.com/martinlaxenaire/curtainsjs/blob/master/LICENSE.txt>)
- [Official source](<https://raw.githubusercontent.com/martinlaxenaire/curtainsjs/master/README.md>)
- [Official source](<https://raw.githubusercontent.com/martinlaxenaire/curtainsjs/master/LICENSE.txt>)

## Editorial review date

2026\-10\-06

## Editorial review scope

Purpose, published primary source code/documentation, and license terms were reviewed\. An example was not run in a local project\.

Dates refer to the stated editorial review, not hands-on testing, a product update, or a recent review of all sources.
