game-animations
v0.0.1
Published
``` npm install game-animations ```
Downloads
4
Readme
game-animations
游戏
安装
npm install game-animations
使用
- json
{
"usingComponents": {
"game-animations": "game-animations/animations"
}
}
- mini.project.json
{
"node_modules_es6_whitelist": [
"game-animations"
]
}
- js
Page({
data: {
animationsData: {
width: 658,
height: 207,
left: (750 - 658) / 2,
top: 0,
images: [
[{ "imageUrl": "https://img.alicdn.com/imgextra/i1/1080040467/O1CN01RoWwm31FJvehMobVS_!!1080040467.png", "height": "207", aniTime: 2 }],
[{ "imageUrl": "https://img.alicdn.com/imgextra/i3/1080040467/O1CN01rmwRtd1FJveohFrYL_!!1080040467.png", "height": "207" }],
[{ "imageUrl": "https://img.alicdn.com/imgextra/i4/1080040467/O1CN01QGaN061FJveqH4WME_!!1080040467.png", "height": "207" }],
[{ "imageUrl": "https://img.alicdn.com/imgextra/i3/1080040467/O1CN01P00yOp1FJveohFWnH_!!1080040467.png", "height": "207" }],
[{ "imageUrl": "https://img.alicdn.com/imgextra/i4/1080040467/O1CN01osc1lv1FJvendPxDs_!!1080040467.png", "height": "207" }],
[{ "imageUrl": "https://img.alicdn.com/imgextra/i4/1080040467/O1CN01LAWrIn1FJvel3l2xC_!!1080040467.png", "height": "207" }],
[{ "imageUrl": "https://img.alicdn.com/imgextra/i4/1080040467/O1CN01bO3jbF1FJvemDb4uL_!!1080040467.png", "height": "207" }],
[{ "imageUrl": "https://img.alicdn.com/imgextra/i3/1080040467/O1CN01kGdfFe1FJvehMr1GY_!!1080040467.png", "height": "207" }],
[{ "imageUrl": "https://img.alicdn.com/imgextra/i4/1080040467/O1CN01In6phC1FJvegm85RG_!!1080040467.png", "height": "207" }],
[{ "imageUrl": "https://img.alicdn.com/imgextra/i3/1080040467/O1CN0189Xhx71FJvel3mFnS_!!1080040467.png", "height": "207" }],
[{ "imageUrl": "https://img.alicdn.com/imgextra/i2/1080040467/O1CN01hExaDx1FJvegm81E4_!!1080040467.png", "height": "207" }],
[{ "imageUrl": "https://img.alicdn.com/imgextra/i1/1080040467/O1CN01XyGMYY1FJvendNwUJ_!!1080040467.png", "height": "207" }],
[{ "imageUrl": "https://img.alicdn.com/imgextra/i4/1080040467/O1CN01uiZmKI1FJvejNhcHN_!!1080040467.png", "height": "207" }],
[{ "imageUrl": "https://img.alicdn.com/imgextra/i1/1080040467/O1CN019HxnvD1FJvegm6Xkq_!!1080040467.png", "height": "207" }],
[{ "imageUrl": "https://img.alicdn.com/imgextra/i4/1080040467/O1CN01Ix35AA1FJvehMnvwi_!!1080040467.png", "height": "207" }],
[{ "imageUrl": "https://img.alicdn.com/imgextra/i2/1080040467/O1CN01DEOvdQ1FJvegm6g5A_!!1080040467.png", "height": "207" }],
[{ "imageUrl": "https://img.alicdn.com/imgextra/i2/1080040467/O1CN01KphOFw1FJvegm64dl_!!1080040467.png", "height": "207" }],
[{ "imageUrl": "https://img.alicdn.com/imgextra/i4/1080040467/O1CN012zC7nd1FJvel3kZmn_!!1080040467.png", "height": "207" }],
[{ "imageUrl": "https://img.alicdn.com/imgextra/i2/1080040467/O1CN01xAL56p1FJvekmZowl_!!1080040467.png", "height": "207" }],
[{ "imageUrl": "https://img.alicdn.com/imgextra/i4/1080040467/O1CN01eoOfXg1FJvehMo4FP_!!1080040467.png", "height": "207" }],
[{ "imageUrl": "https://img.alicdn.com/imgextra/i2/1080040467/O1CN01h3e2go1FJvefIjGyI_!!1080040467.png", "height": "207" }],
[{ "imageUrl": "https://img.alicdn.com/imgextra/i4/1080040467/O1CN01vNFJGq1FJveqH2NJ0_!!1080040467.png", "height": "207" }],
[{ "imageUrl": "https://img.alicdn.com/imgextra/i2/1080040467/O1CN01M6s6AW1FJvejNgwiY_!!1080040467.png", "height": "207" }],
[{ "imageUrl": "https://img.alicdn.com/imgextra/i3/1080040467/O1CN01hgZnqk1FJvendREBm_!!1080040467.png", "height": "207" }],
[{ "imageUrl": "https://img.alicdn.com/imgextra/i3/1080040467/O1CN01DFWcwU1FJveqH3RpN_!!1080040467.png", "height": "207" }],
[{ "imageUrl": "https://img.alicdn.com/imgextra/i4/1080040467/O1CN01doohvq1FJveohHbdz_!!1080040467.png", "height": "207" }],
[{ "imageUrl": "https://img.alicdn.com/imgextra/i2/1080040467/O1CN01JALZ6T1FJvejRLvjm_!!1080040467.png", "height": "207" }],
[{ "imageUrl": "https://img.alicdn.com/imgextra/i1/1080040467/O1CN01ZGK43M1FJvejy37q2_!!1080040467.png", "height": "207" }],
[{ "imageUrl": "https://img.alicdn.com/imgextra/i1/1080040467/O1CN01JR4Xaj1FJvehMo4GC_!!1080040467.png", "height": "207" }],
[{ "imageUrl": "https://img.alicdn.com/imgextra/i2/1080040467/O1CN01uIyUtk1FJveohGrux_!!1080040467.png", "height": "207" }],
[{ "imageUrl": "https://img.alicdn.com/imgextra/i4/1080040467/O1CN01h3gBY81FJvefIkcBb_!!1080040467.png", "height": "207" }],
[{ "imageUrl": "https://img.alicdn.com/imgextra/i2/1080040467/O1CN01U4FpAp1FJvefImUai_!!1080040467.png", "height": "207" }],
[{ "imageUrl": "https://img.alicdn.com/imgextra/i2/1080040467/O1CN01WLki2Q1FJvepNq7un_!!1080040467.png", "height": "207" }],
[{ "imageUrl": "https://img.alicdn.com/imgextra/i3/1080040467/O1CN01ZSVYKa1FJvejRLWnb_!!1080040467.png", "height": "207" }],
[{ "imageUrl": "https://img.alicdn.com/imgextra/i3/1080040467/O1CN010v4TKT1FJvejy50K2_!!1080040467.png", "height": "207" }],
[{ "imageUrl": "https://img.alicdn.com/imgextra/i2/1080040467/O1CN01cQO8Rw1FJveqH2mGv_!!1080040467.png", "height": "207" }],
[{ "imageUrl": "https://img.alicdn.com/imgextra/i1/1080040467/O1CN01aQS6oo1FJvendOPcF_!!1080040467.png", "height": "207" }],
[{ "imageUrl": "https://img.alicdn.com/imgextra/i4/1080040467/O1CN01l3jqFB1FJvejRKn6X_!!1080040467.png", "height": "207" }],
[{ "imageUrl": "https://img.alicdn.com/imgextra/i4/1080040467/O1CN016IbOAW1FJvendPgaw_!!1080040467.png", "height": "207" }],
[{ "imageUrl": "https://img.alicdn.com/imgextra/i1/1080040467/O1CN01uoHYqW1FJvejy3OUL_!!1080040467.png", "height": "207" }],
[{ "imageUrl": "https://img.alicdn.com/imgextra/i4/1080040467/O1CN01Efm4NO1FJvejRKn6w_!!1080040467.png", "height": "207" }],
[{ "imageUrl": "https://img.alicdn.com/imgextra/i2/1080040467/O1CN01SsaJRZ1FJvejy5TQi_!!1080040467.png", "height": "207" }],
[{ "imageUrl": "https://img.alicdn.com/imgextra/i3/1080040467/O1CN01zh6P2b1FJvendP5D5_!!1080040467.png", "height": "207" }],
[{ "imageUrl": "https://img.alicdn.com/imgextra/i4/1080040467/O1CN01gXwI0j1FJvejy4fXA_!!1080040467.png", "height": "207" }],
[{ "imageUrl": "https://img.alicdn.com/imgextra/i1/1080040467/O1CN01EE8jq91FJvejRKvOg_!!1080040467.png", "height": "207" }],
[{ "imageUrl": "https://img.alicdn.com/imgextra/i2/1080040467/O1CN01qyu3LN1FJvefInMfU_!!1080040467.png", "height": "207" }],
[{ "imageUrl": "https://img.alicdn.com/imgextra/i2/1080040467/O1CN01RuDzYM1FJver02x6L_!!1080040467.png", "height": "207" }],
[{ "imageUrl": "https://img.alicdn.com/imgextra/i1/1080040467/O1CN01Ug0VAo1FJveqH3W1o_!!1080040467.png", "height": "207" }],
]
},
}
})
- xaml
<game-animations component-data="{{animationsData}}" style="top:50%;margin-top:350rpx;transform: scale(0.6);"><view slot="common"></view></game-animations>