Animation Aquarium
ScriptWidget template.
Example
//
// ScriptWidget
// https://xnu.app/scriptwidget
//
// Animation Aquarium
//
// Description: Animation Aquarium
//
/*
π
πͺΌ ππ π«§
π«§ π«§ π‘
πͺΌ π¬
πͺΌ π¦ π«§
ππͺΈπΏπͺΈβοΈπΏπππΏπͺΈ
*/
let fishHorizontal = {
type: "swing",
duration: 20,
direction: "horizontal", // "horizontal", "vertical"
distance: 100,
};
let fishVertical = {
type: "swing",
duration: 30,
direction: "vertical", // "horizontal", "vertical"
distance: 70,
};
let bubbleVertical = {
type: "swing",
duration: 15,
direction: "vertical", // "horizontal", "vertical"
distance: 50,
};
let linearGradient = {
type: "linear",
colors: ["#013A63", "#1E81B0", "#E0FBFC"],
startPoint: "top",
endPoint: "bottom",
};
$render(
<vstack background={$gradient(linearGradient)} frame="max" alignment="top">
<hstack alignment="leading">
<text font="body"> π</text>
<spacer />
</hstack>
<hstack alignment="leading">
<text font="body"> πͺΌ π π π«§</text>
<text font="body" animation={$animation(fishVertical)}>π </text>
<text font="body"> π«§</text>
<spacer />
</hstack>
<hstack alignment="leading">
<text font="body"> π«§</text>
<text font="body"> </text>
<text font="body" animation={$animation(bubbleVertical)}>π«§</text>
<text font="body" animation={$animation(fishHorizontal)}>π‘π‘</text>
<spacer />
</hstack>
<hstack alignment="leading">
<text font="body"> πͺΌ π«§ π¬ π¬</text>
</hstack>
<hstack alignment="leading">
<text font="body"> πͺΌ π«§ π¦ π«§π«§</text>
<spacer />
</hstack>
<hstack alignment="leading">
<text font="body"> π πͺΈπΏπͺΈβοΈπΏππ πΏπΏ πΏπͺΈπͺΈ</text>
<spacer />
</hstack>
</vstack>
);
Templates live in
Shared/ScriptWidgetRuntime/Resource/Script.bundle/template/ and can be imported directly into the app.