
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
@lottiefiles/dotlottie-web
Advanced tools
A javascript library for rendering lottie and dotLottie animations in the browser.
Note: This package is currently in beta and the apis are subject to change.
npm install @lottiefiles/dotlottie-web
<canvas id="my-canvas"></canvas>
import { DotLottie } from '@lottiefiles/dotlottie-web';
const dotLottie = new DotLottie({
autoplay: true,
loop: true,
canvas: document.getElementById('my-canvas'),
src: "path/to/animation.json",
});
Option | Type | Default | Description |
---|---|---|---|
autoplay | boolean | false | Whether to start playing the animation immediately |
loop | boolean | false | Whether to loop the animation |
canvas | HTMLCanvasElement | null | The canvas element to render the animation to |
src | string | null | The path to the animation file |
Method | Description |
---|---|
play() | Play the animation |
pause() | Pause the animation |
stop() | Stop the animation |
pnpm install
pnpm dev
pnpm build
Note: This step is necessary only if you wish to update the src/renderer.cpp file or the thorvg version being used. If not, you can skip this step.
Using Docker (Recommended):
pnpm build:wasm:docker
Using Emscripten SDK:
Make sure you have the Emscripten SDK installed.
pnpm build:wasm /path/to/emsdk/
FAQs
Lottie and DotLottie player for the web
The npm package @lottiefiles/dotlottie-web receives a total of 0 weekly downloads. As such, @lottiefiles/dotlottie-web popularity was classified as not popular.
We found that @lottiefiles/dotlottie-web demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.