7

ZIM Fist Bumps! For the CodePen BUMP Challenge

 2 years ago
source link: https://codepen.io/zimjs/pen/YzeyWRx
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

JS (Babel)

xxxxxxxxxx
import zim from "https://zimjs.org/cdn/00/zim";
// see https://zimjs.com
// and https://zimjs.com/learn
// and https://zimjs.com/docs
const frame = new Frame(FIT, 1024, 768, darker, dark);
frame.on("ready", () => {
    const stage = frame.stage;
    const stageW = frame.width;
    const stageH = frame.height;
    // put your code here
    const holder = new Container(stageW, stageH)
        .centerReg() // so animation rotates around the center
        .animate({
            wait:1,
            props:{rotation:360*3},
            rewind:true,
            rewindWait:1,
            ease:"backInOut",

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK