Skip to content

Instantly share code, notes, and snippets.

@ryderr
Created July 25, 2012 21:21
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 ryderr/3178744 to your computer and use it in GitHub Desktop.
Save ryderr/3178744 to your computer and use it in GitHub Desktop.
cool tumbnail hover txt effect thing example here - http://jsfiddle.net/ztKb4/
.block {
display: table;
margin: 0;
padding: 0;
float: left;
height: 400px;
width:400px;
text-align: center;
vertical-align: middle;
background-size: cover;
position: relative;
z-index: 1;
cursor: pointer;
background:black url(http://img.gawkerassets.com/img/17twy6q7m9o2ljpg/medium.jpg)no-repeat center;
background-size:cover;
-webkit-text-fill-color: transparent;
-webkit-background-clip: text;
}
.block h1 {
font-size: 8.2rem;
text-decoration: none;
vertical-align: middle;
font-weight:bold;
display: table-cell!important;
padding: 0 20px;
}
.block:hover {
-webkit-background-clip: none!important;
background-clip:content-box;
}
.block:hover h1 {
cursor: pointer;
display: table-cell;
text-shadow:0px 0px 0px transpaent;
opacity:0.5;
color:black;
-webkit-text-stroke: 1px black;
}​
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment