I do hope this question makes sense! I'm working on a site using the code from this answer: https://stackoverflow.com/a/28097928
I'd like to apply a really basic/short fade-in transition so that the changing text doesn't flash as quickly and appears less jarring. How would I do that? How do I know which attribute to apply the transition to?
EDIT: jsfiddle link
This is the basic Javascript in place:
<script>
function hover(description) {
console.log(description);
document.getElementById('content').innerHTML = description;
}
</script>
Any advice would be greatly appreciated!
Thank you!