代码拉取完成,页面将自动刷新
movy.js is an easy-to-use animation engine based on three.js and gsap.
Assuming you have node.js installed on your computer, you can install movy.js simply by:
npm i -g movy
To run movy.js, enter the following command in your terminal:
movy
It will show a list of example animations in the examples
folder.
To create your own animation, you can start a new javascript file. Following is a simple hello-world program for movy.js.
import * as mo from "movy";
const t = mo
.addText("movy.js is simple!", {
scale: 1,
color: "yellow",
})
.reveal();
mo.run();
Save the file as hello.js
, then open the animation in the browser by
movy hello.js
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。