Skip to content

๐ŸŽฌ Image loader with Lottie animations and SVG patterns ๐ŸŽจ | Customizable through URL parameters ๐Ÿ”— | Smooth transitions โœจ

License

Notifications You must be signed in to change notification settings

vzsoares/image-loader-with-lottie-animation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

11 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŽฌ Image Loader with Lottie Animation

Language License Status

A customizable image loader application with smooth Lottie animations and SVG background patterns. Perfect for enhancing user experience during image loading on websites and web applications.

โœจ Features

  • Lottie Animation: Beautiful loading animations powered by dotLottie
  • Configurable via URL Parameters: Easily customize all aspects through URL parameters
  • SVG Background Patterns: Add optional SVG patterns as decorative backgrounds
  • Minimum Loading Time: Ensures smooth transitions even with fast-loading images
  • Responsive Design: Works seamlessly on all device sizes

๐Ÿš€ Live Webapp

Try it now: Image Loader with Lottie Animation

๐Ÿ”ง URL Parameters

Customize the loader by adding these parameters to the URL:

  • lottie: URL to a Lottie JSON animation file
  • imageurl: URL to the image you want to display after loading
  • bgcolor: Background color in hex format (e.g., %23ffffff for white)
  • svgurl: URL to an SVG file to use as a background pattern

Example URL

https://vzsoares.github.io/image-loader-with-lottie-animation/?lottie=https://cdn.zenhalab.com/assets/structured/lottie_clap_animation.json&bgcolor=%23ff0000&imageurl=https://cdn.zenhalab.com/assets/images/landscape-placeholder.jpeg&svgurl=https://cdn.zenhalab.com/assets/patterns/qqquad.svg

๐ŸŽฎ How It Works

  1. Loading Phase:

    • Displays the Lottie animation while loading your image
    • Applies the specified background color and pattern
    • Ensures a minimum loading time for a smooth experience
  2. Transition:

    • Smoothly fades from the animation to the loaded image
  3. Final Display:

    • Shows your image with the configured background

๐Ÿ”ง Development

Prerequisites

  • Node.js (v14+)
  • npm or yarn

Setup

# 1. Clone the repository:
git clone https://github.com/vzsoares/image-loader-with-lottie-animation.git
cd image-loader-with-lottie-animation

# 2. Install dependencies:
yarn install

# 3. Run development server:
yarn dev

# 4. Build for production:
yarn build

๐Ÿ› ๏ธ Tech Stack

  • TypeScript: For type-safe code
  • Alpine.js: Lightweight JavaScript framework for reactivity
  • dotLottie: Official LottieFiles dotLottie player
  • TailwindCSS: Utility-first CSS framework
  • Vite: Next-generation frontend tooling

๐Ÿค Contributing

Contributions are welcome! Feel free to:

  • Report bugs and issues
  • Suggest new features
  • Submit pull requests
  • Improve documentation

๐Ÿ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.


Created by vzsoares

About

๐ŸŽฌ Image loader with Lottie animations and SVG patterns ๐ŸŽจ | Customizable through URL parameters ๐Ÿ”— | Smooth transitions โœจ

Topics

Resources

License

Stars

Watchers

Forks