0
Does anyone know any css template ready for me to use as a reference to recreate an effect on my site that I am switching from wordpress to html/css I saw by the code that is a layer mask Hover that creates the effect, but I still could not play the same using html/css.
These are the icons I circled in blue I want to create a similar effect on this icons using html/css only (when the mouse moves over the circular image the mask decreases and increases the size of the image, since when the mouse is not on top of the image it appears with a larger mask that makes it appear to be smaller)
address of the websites are:
https://mdwebdesign.tk/
https://demo.presscustomizr.com/
the images are:
https://i.ibb.co/M6sxxqn/efeitohover.jpg
https://i.ibb.co/sJwfW3d/efeitohover2.jpg
Code:
html:
<main>
<div class="linkshome">
<div class="czr-link-mask">
<a href="portfolio.html">
<img src="img/portfolio.jpg">
<h4>Portfólio</h4>
</a>
</div>
<div class="czr-link-mask">
<a href="servicos.html">
<img src="img/servicos.jpg">
<h4>Serviços</h4>
</a>
</div>
<div class="czr-link-mask">
<a href="contato.html">
<img src="img/contato.jpg">
<h4>Contato</h4>
</a>
</div>
</div>
</main>
css:
main {
margin-left: 90px;
margin-right: 60px;
padding: 20px;
}
.linkshome {
display: flex;
justify-content: center;
}
.linkshome h4{
text-align: center;
}
/*Efeito Destaques (ainda testando efeitos para portfólio,serviços e contato.jpg)*/
.czr-link-mask-p.hover .czr-link-mask::before,.expanded .czr-link-mask::before, .czr-link-mask:hover {
-webkit-transform:translate(-50%,-50%) scale(1.4);
transform:translate(-50%,-50%) scale(1.4);
-webkit-transform:translate3d(-50%,-50%,0) scale(1.4);
transform:translate3d(-50%,-50%,0) scale(1.4);
}
/*Destaques*/
Put what you already have of code there, only the example link of the link does not help to solve your problem. You need to provide what you already have of model ready there so we can give you a solution to your case.
– hugocsl
Buddy, I don’t think you noticed, but there’s a button written EDIT right below the text of your question. You should click on it and include these codes all directly within your question, and not in the comments here....
– hugocsl
Cara gave a formatted code, but to vote to reopen it is necessary that you edit also describing this effect of Hover that you want. Whoever comes in now and reads the question will only see the code... and the description of the effect you want to do? Now you can leave the code plus the explanation and the link of the example and everything else. Don’t think of it as a tug of an ear, I’m just giving you tips so you can come up with your questions within the standards of the site. Abs
– hugocsl
OK Thanks I already edited the question with the biggest kind of details I remembered
– matheusdouradobr