ramnathv / rblocks

A fun and visual way to learn data structures and control flow in R.
26 stars 9 forks source link

Reveal Image on Hover #4

Open ramnathv opened 10 years ago

ramnathv commented 10 years ago

Here is a nice approach to using CSS to reveal a hidden-image on mouseover. I created a jsfiddle using this.

Its relevance to rblocks is that it can allow instructors using knitr to generate the notes to hide answers to questions in the HTML itself. It would require a custom knitr hook, but that should be straightforward to write.

It is low priority currently, but just wanted to leave it in, so that I don't forget.