path_aminate_simple
auth: wwmin
npm i path_animate_simple --save
or just from cdn
<script src="https://cdn.jsdelivr.net/npm/path_animate_simple@{replace-version}/dist/index.js" type="module"></script>
import pathAnimateSimple from "path_animate_simple";
- global install typesciprt
npm install -g typescript
- Manually convert ts to js
tsc xxx.ts
- vscode automatically converts ts to js after configuration
tsc --init
The tsconfig.json file is generated Open the tsconfig.json file, modify the contents as needed, you can save ts to a specific location can be modified '"outDir": "Store the storage path of the generated js"', Select 'run build task' in terminal, then select 'tsc:watch - tsconfig.json', after listening, you can write the ts code directly, After pressing Save, the generated js code will be automatically updated