Last active
January 22, 2018 08:39
-
-
Save kerkenit/29ac0a8b6af6bfc5da5e435f340f23b7 to your computer and use it in GitHub Desktop.
Reset the pixels of a screen to prevent burning in
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> | |
<title>PixelReset</title> | |
<link rel="stylesheet" type="text/css" href="PixelReset.css" /> | |
</head> | |
<body> | |
<div id="PixelReset"></div> | |
</body> | |
</html> |
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
#PixelReset { | |
position: absolute; | |
left:0; | |
top:0; | |
width: 100%; | |
min-height: 100%; | |
z-index: 2147483647; | |
background: linear-gradient(270deg, #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff); | |
background-size: 1200% 1200%; | |
-webkit-animation: PixelReset 120s ease infinite; | |
-moz-animation: PixelReset 120s ease infinite; | |
-o-animation: PixelReset 120s ease infinite; | |
animation: PixelReset 120s ease infinite; | |
} | |
@-webkit-keyframes PixelReset { | |
0%{background-position:0% 50%} | |
50%{background-position:100% 50%} | |
100%{background-position:0% 50%} | |
} | |
@-moz-keyframes PixelReset { | |
0%{background-position:0% 50%} | |
50%{background-position:100% 50%} | |
100%{background-position:0% 50%} | |
} | |
@-o-keyframes PixelReset { | |
0%{background-position:0% 50%} | |
50%{background-position:100% 50%} | |
100%{background-position:0% 50%} | |
} | |
@keyframes PixelReset { | |
0%{background-position:0% 50%} | |
50%{background-position:100% 50%} | |
100%{background-position:0% 50%} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment