That's a good idea. I think I may leave that for customization on the designer's part, or include it and note it as "configurable", because that would likely change depending upon the images. There really is no problem with cropping if you toggle out of full screen mode in that example. There's still a lot more I want to do with this code (have already moved on to beta 3fa, which will have more changes and probably later versions before its alpha) before making it officially available, though I have no problem with folks using it as is for now and/or playing with it to see what it can do/be modded for, as long as the credit remains.
Edit: Decided to include a version of that:
Code:
@media screen and (max-width: 700px) { /* optional and configurable */
#slider.full > div > div, #slider.full > div > a > div {
background-size: contain;
background-repeat: no-repeat;
background-color: #fff;
}
#slider.fullScreen > div > div, #slider.fullScreen > div > a > div {
background-color: #666;
}
}
Which necessitated adding the highlighted:
Code:
#slider .descwrap {
border: 0 solid #aaa; /* optional decorations */
border-radius: 0 0 25px 25px; /* optional decorations */
position: absolute; /* required */
bottom: 0.5ex; /* required */
transition: height 1s; /* required for animation the s is seconds, adjust for longer or shorter animation of descriptions, decimals allowed */
width: 100%; /* required */
overflow: hidden; /* required */
background: transparent !important; /* recommended */
}
Edit: Now that I've seen it both ways, I'm thinking it might be better to leave it out and let the user shorten the window (or on mobile, switch to landscape) to compensate. Seems to merit mention in the documentation though, not quite to that stage yet.
Bookmarks