jcklie / anki-maobi

máobĭ (毛笔) is an Anki add-on to create cards with writing quizzes for Hanzi (Chinese characters)
MIT License
47 stars 7 forks source link

#21 - reveal character #24

Closed arueckle closed 4 years ago

jcklie commented 4 years ago

The button works nicely. It would be maybe good if the button could also restart the animation or it should loop. The button for me is also a bit inside the canvas:

image

<p>{{Pinyin}}</p>
<p>{{Meaning}}</p>

<div id="character-target-div"></div>
<div id="reveal-character-btn" label="Reveal"></div>
arueckle commented 4 years ago

Repeating animations on button click is now possible. The Reveal Character button now has a default style with a margin to the top and bottom, which should fix potential overlap issues.