Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
@qonto/ember-lottie
Advanced tools
Changelog
Readme
Render lottie after effects animations in Ember.js.
ember install @qonto/ember-lottie
<Lottie
@name="empty state"
@animationData={{this.animationData}}
@path="/data.json"
@loop={{false}}
@autoplay={{false}}
@speed={{500}}
@containerId={{this.id}}
@onDataReady={{this.args.onDataReady}}
@fetchOptions={{this.fetchOptions}}
/>
Argument | Type | Description |
---|---|---|
name | string | animation name for future reference |
animationData | object | an object with the exported animation data (mandatory at least one: animationData or path ) |
path | string | the relative path to the animation object (mandatory at least one: animationData or path ) |
loop | boolean | by default at true , the animation runs forever, at false , the animation is played only once |
autoplay | boolean | by default to true , it will play as soon as it's loaded |
speed | number | 1 is normal speed |
containerId | string | the dom element id on which to render the animation (mandatory) |
onDataReady | function | a function that triggers the Lottie when you want it |
onError | function | a function that can be used as a callback when fetching the lottie file throws |
fetchOptions | object | any additional params to pass to fetch function (eg: {credentials: "include"} ) |
The Lottie
component has proper Glint types, which allow you to get strict type checking in your templates when using TypeScript.
Unless you are using strict mode templates (via first class component templates), you need to import the addon's Glint template registry entries as described in the Using Addons documentation:
// e.g. types/glint.d.ts
import "@glint/environment-ember-loose";
import type LottieRegistry from "@qonto/ember-lottie/template-registry";
declare module "@glint/environment-ember-loose/registry" {
export default interface Registry
extends LottieRegistry /* other addon registries */ {
// local entries
}
}
See the Contributing guide for details.
This project is licensed under the MIT License.
FAQs
Render lottie after effects animations in Ember.js
The npm package @qonto/ember-lottie receives a total of 15,611 weekly downloads. As such, @qonto/ember-lottie popularity was classified as popular.
We found that @qonto/ember-lottie demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers 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.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.