Auto-scroll to first cloze deletion on reveal

It’s actually pretty simple. This works for me in the front/back templates:

<script>
onUpdateHook.push(() => {
  document.querySelector(".cloze[data-ordinal='1']").scrollIntoView();
});
</script>
5 Likes