animCJK icon indicating copy to clipboard operation
animCJK copied to clipboard

How to automatically restart animation after it finished

Open UEPSs opened this issue 3 years ago • 3 comments

I find stroke order animations stop after finishing playing. How to make them to auto restart? In other words, how to make animations auto repeat?

UEPSs avatar Sep 17 '22 02:09 UEPSs

It depends of the context.

How are you using animCJK?

parsimonhi avatar Sep 19 '22 07:09 parsimonhi

It depends of the context.

How are you using animCJK?

I use it in android WebView.

UEPSs avatar Sep 24 '22 00:09 UEPSs

I meant, do you just display the svg files where the characters are stored in your android WebView? Or do you insert these svg files inside a html page and display this html page in your android WebView? And how do you select a character ? Or do you visit a website where animCJK is in use and this is the pages of this website that you display in your android WebView?

Making an auto-repeat needs modifying the css of each svg files one by one, or alternately can be done with some javascript codes that can be inserted in the svg files or in a web page that displays the svg files.

A sample of the later case can be seen at http://gooo.free.fr/animCJK/official/samples/ (select the "infinite" radio button, then click on "display"). But it needs some adaptation (depend what you are doing exactly).

parsimonhi avatar Sep 24 '22 07:09 parsimonhi