Skip to content

Instantly share code, notes, and snippets.

@tdrayson
Created October 27, 2020 20:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tdrayson/672219a8b7423f797cbf24955d04e142 to your computer and use it in GitHub Desktop.
Save tdrayson/672219a8b7423f797cbf24955d04e142 to your computer and use it in GitHub Desktop.
/*Image Overlay on Hover*/
.image-overlay{
position: relative;
cursor: pointer;
}
.text-colour a{
color:black;
}
.image-overlay:after {
content: "";
display: block;
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
background:#c0d142 url(img) no-repeat 50% 50%;
-moz-transition: background .3s linear;
-webkit-transition: background .3s linear;
-o-transition: background .3s linear;
transition: background .3s linear;
opacity:0;
-webkit-border-radius:50%;
}
.image-overlay:hover:after{
opacity:0.8;
color: #c0d142;
}
.text-colour a:hover{
color: #c0d142;
}
.zoom {
padding: 0px;
background-color: green;
transition: transform .2s; /* Animation */
width: auto;
height: auto;
margin: 0 auto;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment