css mouse hover image mask effect implementation code

小云云
Release: 2018-02-28 10:19:00
Original
3224 people have browsed it

This article mainly shares with you the css mouse hover image mask effect implementation code, hoping to help everyone.

css

p>p{    background: rgba(255, 255, 255, 0);    transition: background 0.3s linear;}p:hover>p{    background: rgba(228, 228, 228, 0.29);}
Copy after login

html

<p style="width:200px;height:200px;position: absolute;">
    <img src="img/img.jpg" style="width: 100%;height: 100%;"/>
    <p style="position: absolute;width: 100%;height: 100%;top: 0;"></p></p>
Copy after login

Related recommendations:

javascript Mouseover image displays the original image and disappears after the mouse is moved out (Multiple pictures)_Image special effects

The above is the detailed content of css mouse hover image mask effect implementation code. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template