For the 2.0 version, the library has been almost entirely rewritten with some major changes. You'll find here everything you'll need to stay up to date with the latest improvements.


In a browser:

<script src="curtains.min.js"></script>

Using npm:

npm i curtainsjs

Load ES module:

import {Curtains} from 'curtainsjs';


Additional ressources

  1. CSS Tricks tutorial based on v1.0.
  2. CodePen curtains.js collection