npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@yanshouwang/lottie-wmc

v1.0.4

Published

Lottie 小程序组件

Readme

Lottie.WMC

Node.js Package

Lottie 小程序组件

介绍

Lottie 小程序的第三方组件项目,将小程序官方的 lottie-miniprogram 项目封装为组件,方便各位同学开发使用

安装

npm install --save @yanshouwang/lottie-wmc

使用

*.JSON:

{
    "usingComponents":{
        "lottie":"../../miniprogram_npm/@yanshouwang/lottie-wmc/lottie"
    }
}

*.TS / *.JS

import xxx from "...";

Page({
    data:{
        xxx:xxx
    }
});

*.WXML

<lottie data="{{xxx}}" />
或者
<lottie uri="..." />

属性: |参数名|类型|说明| |-|-|-| |data|Object|动画对象| |uri|String|网络地址| |loop|Boolean|循环播放| |direction|Number|播放方向| |speed|Number|播放速度|

问题

  • Lottie 小程序版的 destroy 方法会报错,导致对象无法销毁,多次渲染组件后会出现 BUG,待解决,详见:https://github.com/wechat-miniprogram/lottie-miniprogram/issues/1
  • 由于存在 BUG 并出于界面和逻辑解耦的考虑,目前组件不支持加载动画后再次修改动画参数
  • 目前本地文件只能使用模块导入之后数据绑定的方法进行加载,显然这会造成界面逻辑的耦合,但是暂未找到更好的解决方案,因此推荐采用网络地址进行加载
  • 测试项目不可用,因为 lottie-miniprogram 项目测试时会报错
  • 欢迎 PR 和 STAR :)