Opacity background on hover

3 replies·opened Sep 12, 2022
M
MakeDoSrlSep 12, 2022

Hello! i'd like to have same opacity filter like you have in your demo. This is my piece of code that render slider

<!-- [LOOP INIZIO] -->
<div class='oc-item'> 
  <div class="product">
    <div class="product-image">
      <a href="|controllo;urlDettaglioProdotto;|">
        <img src='|controllo;urlImmagineProdotto;|' alt='|controllo;NomeProdotto;|'></a>

      <div class="bg-overlay">
        <div class="bg-overlay-content align-items-end justify-content-between" data-hover-animate="fadeIn" data-hover-speed="400">
          <div class="product-desc">
            <div class="product-title"><span class="subtitle">|controllo;spc:Marca;|</span><h3><a href="|controllo;urlDettaglioProdotto;|">|controllo;NomeProdotto;|</a></h3></div>
            <div class="product-price"><del>|controllo;DescrizionePrezzoListino;|</del> <ins>|controllo;DescrizionePrezzo;|</ins></div>
          </div>
        </div>
        <div class="bg-overlay-bg bg-transparent dark"></div>
      </div>

    </div><!--product-image-->

  </div><!--product-->
</div><!--oc-item-->
<!-- [LOOP FINE] -->

How can i have same opacity black result on hover product like in your demo attached? https://ibb.co/DKYPDvC
Thanks

S
SemiColonWebSTAFFSep 12, 2022

Hello,

Replace the following code:

<div class="bg-overlay-bg bg-transparent dark"></div>

with this:

<div class="bg-overlay-bg dark" data-hover-animate="fadeIn"></div>

This will definitely work fine. Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

M
MakeDoSrlSep 12, 2022

great thanks! will be possible change also color background and opacity level (0.8 or 0.7 etc..?)

S
SemiColonWebSTAFFSep 13, 2022

Hello,

This can be done manually. Example:

<div class="bg-overlay-bg dark" data-hover-animate="fadeIn" style="background-color: rgba(0,0,0,0.75);"></div>

Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard