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

@amjed.gabteni/capacitor-lottie-splashscreen

v0.0.2

Published

Capacitor plugin to render Lottie-powered splash screens on iOS and Android.

Readme

@amjed.gabteni/capacitor-lottie-splashscreen

Capacitor plugin to show a native full-screen Lottie splash overlay on iOS and Android.

Install

npm install @amjed.gabteni/capacitor-lottie-splashscreen
npx cap sync

Platform install help

Project files

iOS setup

  1. Add your animation JSON file to your iOS app bundle (for example splash.json).
  2. Ensure it is copied into the app target.

Android setup

  1. Place your animation JSON file in android/app/src/main/assets/ (for example splash.json).
  2. Rebuild and sync Capacitor.

Launch config

Configure launch behavior in capacitor.config.ts:

plugins: {
  LottieSplashscreen: {
    launchAutoShow: true,
    launchAnimationName: 'splash',
    launchLoop: true,
    launchSpeed: 1,
    launchBackgroundColor: '#000000',
    launchAutoHideMs: 2500,
    launchSafetyHideMs: 7000,
  },
}

Notes:

  • launchAutoShow: enables automatic splash on app launch.
  • launchAutoHideMs: set 0 to keep the splash visible until hide() is called.
  • launchSafetyHideMs: force-hide safety timeout to avoid stuck overlays.
  • launchAnimationName: accepts either splash, splash.json, or bundle paths like public/splash.

API

show(...)

show(options?: ShowOptions | undefined) => any

Show the native Lottie splash overlay.

| Param | Type | | ------------- | --------------------------------------------------- | | options | ShowOptions |

Returns: any


hide(...)

hide(options?: HideOptions | undefined) => any

Hide the native Lottie splash overlay.

| Param | Type | | ------------- | --------------------------------------------------- | | options | HideOptions |

Returns: any


preload(...)

preload(options: PreloadOptions) => any

Preload an animation composition for faster startup display.

| Param | Type | | ------------- | --------------------------------------------------------- | | options | PreloadOptions |

Returns: any


setAnimation(...)

setAnimation(options: SetAnimationOptions) => any

Update the default animation used by future show() calls.

| Param | Type | | ------------- | ------------------------------------------------------------------- | | options | SetAnimationOptions |

Returns: any


Interfaces

ShowOptions

| Prop | Type | Description | | --------------------- | -------------------- | ----------------------------------------------------------------------------------------------------- | | animationName | string | Animation file name from the native app bundle/assets. You can pass either splash or splash.json. | | loop | boolean | Whether the animation should loop forever. | | speed | number | Playback speed where 1 is normal speed. | | backgroundColor | string | Background color as CSS hex (for example #0f172a). | | autoHideMs | number | Auto-hide timeout in milliseconds. Set 0 or omit to keep splash visible until hide() is called. |

HideOptions

| Prop | Type | Description | | --------------- | ------------------- | ---------------------------------- | | fadeOutMs | number | Fade out duration in milliseconds. |

PreloadOptions

| Prop | Type | Description | | ------------------- | ------------------- | --------------------------------------- | | animationName | string | Animation file name from native assets. |

SetAnimationOptions

| Prop | Type | Description | | ------------------- | ------------------- | --------------------------------------- | | animationName | string | Animation file name from native assets. |

Usage

import { LottieSplashscreen } from '@amjed.gabteni/capacitor-lottie-splashscreen';

await LottieSplashscreen.preload({ animationName: 'splash' });
await LottieSplashscreen.show({
  animationName: 'splash',
  loop: true,
  speed: 1,
  backgroundColor: '#020617',
});

// after app bootstrap
await LottieSplashscreen.hide({ fadeOutMs: 220 });