Last active
December 28, 2015 08:59
-
-
Save nathanleclaire/7475441 to your computer and use it in GitHub Desktop.
Originally a JS Fiddle I put together that I'm making as a gist for reference
This file contains 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> | |
<style> | |
p { | |
-webkit-transition: color 4s ease-in-out; | |
font-size: 72px; | |
} | |
p.greenit { | |
color: Chartreuse; | |
-webkit-transition: color 4s ease-in-out; | |
} | |
</style> | |
<script src="http://codeorigin.jquery.com/jquery-1.10.2.min.js"></script> | |
</head> | |
<body> | |
<p> | |
<strong>something ...</strong> | |
</p> | |
<script> | |
$(document).ready(function () { | |
window.setInterval(function () { | |
$('p').addClass('greenit'); | |
window.setTimeout(function () { | |
$('p').removeClass('greenit'); | |
}, 4000); | |
}, 8000); | |
}); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment