spectacle
spectacle copied to clipboard
Highlight lines in Code Pane simultaneous with other items.
Not sure if this is possible, but can I highlight code lines simultaneous with activating steps?
I attempted to do this but had no success. It appears the CodePane
prop highlightRanges
does not handle being changed post-render.
https://codesandbox.io/s/synchronized-animations-example-codepane-spectacle-b0jwzy?file=/src/index.js
I think the API of CodePane
could use an update to make this possible.
Also, maybe at some point we can figure out a friendlier way to handle multiple actions on a single stepIndex
without having to wrap everything. Or maybe we should just stick to what works now, without adding to the API surface area 🤷♂️