The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › Diagonal and responsive caption overlay for bootstrap carousel?
I am trying to create a caption overlay for a bootstrap carousel without resorting to transforms and overflow-hidden.
Is there an easy way to do this with gradients or some other method?
Here is a mockup of what I am trying to achieve:
I suspect overflow hidden will be required in most cases….overlays usually do.
Are we overlaying the images or the whole carousel?
The exact implementation will depend on your html structure but you could get the look you’re after with a css gradient:
rgba(0,0,0,.7) 60%, rgba(0,0,0,0) 60.2%