Animate style of math and text in Markdown cells (e.g. highlight colums of matrix)

I am using a Jupyter notebook with RISE to make a presentation. I would like to animate a math equation by highlighting rows and columns of a matrices.

If I inspect the DOM, I can change style properties of the MathJax output. For example, here I am changing the visibility of a column of a matrix:


Is there a robust way to animate in this way in Jupyter? I do not mind having to inject nodes into the DOM to highlight regions, and having to manually specify the size of the region, but I would like the technique to be robust against e.g. cell ordering and adding new MathJax equations.

1 Like