Last active
August 29, 2015 14:05
-
-
Save notwaldorf/2a472021dfe7ac0571aa to your computer and use it in GitHub Desktop.
Weird text jankiness when using a "transition: opacity" on a div
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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