There is such a code:

<div class="owl-item active"> ... <div class="amasty-label-container amasty-label-container-2-2094" style="opacity: 0;width: 98px;line-height: normal;height: 40px;position: absolute;z-index: 995;top: 0px;left: 0px;">Some Text</div> ... </div> 

It is necessary using JS to replace opacity: 0 with opacity: 1 for all elements that relate to .owl-item.active

  • this is not code, but html markup and it is not clear how to relate to .owl-item.active - HamSter
  • In the most direct way, if you insert the entire code fragment (html markup), it is unlikely to be readable. Then not "coder", "html-razmetovchik". I doubt that by calling the html markup code, the person made a gross error. Oh, sorry, you can also call html-coder - eugene_v
  • Well, after you edited the question, it became clearer with .owl-item - HamSter
  • one
    @ElenaSemenchenko, it only remains to determine that the expression "code" is also applied to the markup, although it is used less frequently. Therefore, the statement "this is not a code" is not correct. - Alex Krass

1 answer 1

 $('.owl-item.active > *').css('opacity', 1);