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 🙏

© 2025 – Pkg Stats / Ryan Hefner

ff-img-overlay

v8.0.0

Published

[![Build Status](https://travis-ci.org/frontendfreelancerdk/ff-img-overlay.svg?branch=master)](https://travis-ci.org/frontendfreelancerdk/ff-img-overlay)

Downloads

9

Readme

Build Status

ff-img-overlay

Installing

npm install ff-img-overlay --save

Using

Simple usage

<ff-img-overlay 
   [imgUrl]="'/images/iphone25.png'" 
   [text]="'IPhone 25'"
   <!-- if [scale] is true base image will have a slight scaling-->
   [scale]="true"
></ff-img-overlay>

Usage with own templates:

<!-- You can create some template as base -->

<ng-template #myBase>
  <img src="/images/iphone25.png" alt="" style="width:100%;height: auto; display: block">
  ...
</ng-template>

<!-- ... and as overlay -->

<ng-template #overlay>
  <p class="myClass">IPhone 25!</p>
  ...
</ng-template>

<ff-img-overlay
<!-- You can use [mainTmp] attribute instead of [imgUrl] and put your template reference variable for base-->
  [mainTmp]="mainTmp"
  <!-- and [overlayTmp] property instead of [text] for overlay-->
  [overlayTmp]="overlay"
></ff-img-overlay>

Animations

You can set your own animations for appearance and disappearance:

<ff-img-overlay
  <!--Just use [cssClassEnter] property for overlay appearance-->
  [cssClassEnter]="'zoomIn'"
  <!-- and [cssClassLeave] for overlay disappearance-->
  [cssClassLeave]="'zoomOut'"
  <!-- Also you should specify some css class for animation. 
  It means that this class must have css transition property or animation-duration-->
  [cssClassAnimated]="'animated'"
></ff-img-overlay>

Events hendle

You can handle events, component has outputs for that:

<ff-img-overlay
  (mouseLeave)="leaveHandler($event)"
  (mouseEnter)="enterHandler($event)"
></ff-img-overlay>

Types and default values

  @Input() mainTmp : TemplateRef<any>;
  @Input() overlayTmp : TemplateRef<any>;
  
  @Input() imgUrl : string;
  @Input() text : string;
  
  @Input() scale : boolean;

  @Input() cssClassEnter : string = 'ff-enter';
  @Input() cssClassLeave : string = 'ff-leave';
  @Input() cssClassAnimated : string = 'ff-animated';


  @Output() mouseEnter : EventEmitter<any>;
  @Output() mouseLeave : EventEmitter<any>;

Styling

You can change default styles. That can be used to target the override

.ff-img-overlay_wrapper{

}
.ff-img-overlay_base{

}
.ff-img-overlay_img{

}
.ff-img-overlay_overlay{

}
.ff-img-overlay_text{

}