Skip to content

Instantly share code, notes, and snippets.

@notwaldorf
Last active August 29, 2015 14:05
Show Gist options
  • Save notwaldorf/2a472021dfe7ac0571aa to your computer and use it in GitHub Desktop.
Save notwaldorf/2a472021dfe7ac0571aa to your computer and use it in GitHub Desktop.
Weird text jankiness when using a "transition: opacity" on a div
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
<div id="box">
<div id="content">
CSS, right?
</div>
<img id="cat"
src="http://cdn.grumpycats.com/wp-content/uploads/2012/09/GC-Gravatar-copy.png"</img>
</div>
<style id="jsbin-css">
#box {
height: 250px;
width: 200px;
transform: scale(0.9);
border: 1px solid black;
}
#cat {
opacity: 0.5;
}
#cat:hover{
opacity: 1;
transition: opacity 100ms;
}
#content {
font-size: 20px;
}
</style>
</head>
<body>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment