First of all, some people say that this is reinventing the wheel, but I don’t think so. When doing projects, you can’t always use other people’s things. It is not a fun thing to use things. Of course, if you want to relax, you can’t do it. By the way, at least I did it myself. It’s easier for me to modify or expand it.
The effect and code are as follows. I put the preview effect in html myself. It’s very troublesome to do it on this page