Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- img {
- visibility: hidden;
- }
- .image {
- position: relative;
- color: #ba0000;
- }
- .wgl-darkmode .image {
- color: #f26d60;
- }
- .image::before {
- content: attr(href);
- position: absolute;
- left: 0;
- right: 0;
- top: 0;
- bottom: 0;
- display: block;
- }
- .image:hover img {
- visibility: visible;
- }
- .image:hover::before {
- content: none;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement