I am trying to make a website, that can showcase the products as the slider below: http://coolcarousels.frebsite.nl/c/68/
I have changed the slider to make it fit the full screen. Also succeeded at stopping auto play. However, now I am trying to determine how to let the slider grow in height based on the content inside it.
From what I gather, the height of the slider is set to 100% but if I let it take its own height.. it gets rid of the carousel.. So i am at a loss of how to make it take up the length of the content as well as continue to be a carousel..
#slider .slide {
position: relative;
display: none;
/* height: 100% !important; */}
above: if I get rid of the 100% height it takes the height of the content but all the other slides disappear.
I figure that it would be impossible for it to have dynamic height and still work as a slider. But even if it took the height of the tallest div it would be good.
I am afraid then the only thing that can do that is Javascript. I do not have enough knowledge of it to custom fit a code to my need.
I tried playing with the calculations on the codes but failed at achieving anything.
Is there anyone who can help me with this?
PS: Also realize that its now become jittery as I added one more slide to be visible contrary to the original that shows only three in all at a time. What would fix that?
here is the original tutorial Original Tutorial
and here is the JSBin of my attempt Js BIN
EDIT: @tsujp suggested something that can solve part of the problem, but we weren't able to chat, so If anyone has more suggestions to make this as smoothly functioning as possible, please feel free to add to it. Thanks