Home » Javascript » javascript – Curtain Effect – How to have the curtain size as height of the element than the window height?

javascript – Curtain Effect – How to have the curtain size as height of the element than the window height?

Posted by: admin February 23, 2020 Leave a comment

Questions:

I’m using this plugin called curtain.js.

The height of each curtain is automatically set to window height.

What i want is for the curtain to have the height of the element.

This is the link of the plugin https://github.com/Victa/curtain.js

And to be more clear about the problem, my current output looks similar to this :

https://llidesign.co.uk/iconic-furniture/#section-1

and the below is what i want to achieve :

https://www.rileygrey.com/designs/30/color/216/font/48#home

See in the second link each curtain has a unique height which is the height of the section.

Whereas in the first link it takes the standard viewport height.

Please help me solve this. Thanks.

How to&Answers: