Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

freezeframe-lite

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

freezeframe-lite

A lighter-weight version of freezeframe.js

  • 1.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
increased by33.33%
Maintainers
1
Weekly downloads
 
Created
Source

freezeframe-lite

NPM Install Size

A version of freezeframe.js, in a 75% smaller bundle (16 KB vs 66 KB) and with fewer features. Motivated by a feature request during Hacktoberfest 2019.

React Codesandbox Demo

Supported

  • Animate a single GIF when hovered over.
    • Achieves this by overlaying the GIF with a canvas populated an image of the first frame.
  • A hooks-based React wrapper
    • TODO: tear down event listeners when component is unmounted

Not Supported

Features intentionally removed from the main freezeframe.js library for smaller size

  • Support putting multiple images inside parent element
  • Validate that all pictures are GIFs
  • Manually triggering image start/stop without actual hovering
  • Trigger animation via click instead of hover
  • No overlays or play icons

Installation

yarn add freezeframe-lite
npm install freezeframe-lite

By default, an ES6 module is exported.

// import ES6 Module
import FreezeframeLite from 'freezeframe-lite';

// Import non-ES6 Module
import FreezeframeLite from 'freezeframe-lite/dist/freezeframe-lite.min';

// React Wrapper
import FreezeframeWrapper from 'freezeframe-lite/examples/FreezeframeWrapper';

Development

  1. Clone repository
  2. yarn install
  3. Modify contents of src/ folder

FAQs

Package last updated on 12 Oct 2019

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc