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 🙏

© 2024 – Pkg Stats / Ryan Hefner

wts-image-gallery

v0.0.4

Published

Wts Image Gallery is a lightweight, Angular 17+ compatible directive for displaying images in a popup modal, similar to FancyBox but without relying on jQuery. This package provides a clean, modern way to handle image zoom and popup functionality, fully i

Downloads

272

Readme

Wts Image Gallery

Wts Image Gallery is a lightweight, Angular 17+ compatible directive for displaying images in a popup modal, similar to FancyBox but without relying on jQuery. This package provides a clean, modern way to handle image zoom and popup functionality, fully integrated with Angular's reactive features.

Install

npm install --save wts-image-gallery

Next import calendar component

import { Component, ViewChild, afterNextRender } from '@angular/core';

import { WtsImageDirective } from 'wts-image-gallery';

....

@Component({
  selector: '<COMPONENT-SELECTOR>',
    templateUrl: '<COMPONENT>.html',
    styleUrls: ['<COMPONENT>.scss'],
    standalone: true,
    imports: [WtsImageDirective],
    providers: [DatePipe]
})
export class CalenderComponent {

}

HTML

    <div class="wts-image-gallery">
    <img src="./image1.jpg" alt="" wts-image title="Quos nulla adipisci amet aspernatur porro.">
    <img src="./image2.jpg" alt="" wts-image
      title="Esse vero rerum ut maiores earum velit provident dolores inventore incidunt">
  </div>

Features

No jQuery Dependency: Built entirely with Angular, no need to include jQuery or any external dependencies.

Lightweight: Focuses on delivering a simple image popup experience without bloat.

Customizable Styles: Easily customize the modal’s look and feel to match your application's theme.

Responsive Design: Ensures the image popup works seamlessly across devices, from mobile to desktop.

Animation Support: Smooth opening and closing animations for a polished user experience.

Keyboard and Mouse Navigation: Allows users to navigate between images using arrow keys or mouse clicks.

Demo

Stackblitz

Keywords

image modal, Angular lightbox, Angular image lightbox, Angular image gallerypopup, Angular gallerypopup, gallerypopup, Angular Standalone Calender, Angular Standalone Component, @typeScript