Limited availability during the holidays

Another busy year is coming to its end, and an exciting year lies ahead. In order to get ready for a fresh new start, our team will spend a few days' rest during the winter holidays. Over the holiday break, we will have reduced staffing from December 20th, 2024, to January 5th, 2025, so please be patient if you do not receive a response as quickly as you normally would.

We send our warmest wishes for happiness, health, and success throughout the coming year. Thank you for your continued support, and may you have a peaceful and blessed Happy Holidays!

Okay
  Public Ticket #1231298
Insert gradient layers
Closed

Comments

  • vadim started the conversation

    Hi

    I'm trying to insert gradients at the top and the bottom of a full screen slider. The css is:

    .ls-layers:before, .ls-layers:after {content: ''; position: absolute; width: 100%; height: 200px; z-index: 30; }
    .ls-layers:before { top: 0; background: -moz-linear-gradient(top, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 100%); background: -webkit-linear-gradient(top, rgba(0,0,0,0.4) 0%,rgba(0,0,0,0) 100%); background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%,rgba(0,0,0,0) 100%); filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#66000000', endColorstr='#00000000',GradientType=0 ); }
    .ls-layers:after { bottom: 0; background: -moz-linear-gradient(top, rgba(0,0,0,0) 0%, rgba(0,0,0,0.4) 100%); background: -webkit-linear-gradient(top, rgba(0,0,0,0) 0%,rgba(0,0,0,0.4) 100%); background: linear-gradient(to bottom, rgba(0,0,0,0) 0%,rgba(0,0,0,0.4) 100%); filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00000000', endColorstr='#66000000',GradientType=0 ); }

    but neither :before or :after are appearing

    Is it possible?

  • [deleted] replied

    Hey vadim,

    I would recommend a different approach instead.

    You could create two layers (DIV / HTML), set gradient background color on them, size them (width: 100% and let's say height: 25%), position them on the top (top: 0) and bottom (top: 100%) of the slider and set them to be static layer.