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

react-zoom-children

v0.1.3

Published

react-zoom-children for react

Readme

react-zoom-children


NPM version build status codecov node version npm download

🔍zoom img or any childNode for react. (Inspired by drawer, zooming)

Example

http://becarchal.github.io/react-zoom-children

Usage

import ReactZoomChildren from 'react-zoom-children';
import React from 'react';
import ReactDom from 'react-dom';

ReactDom.render(
  <ReactZoomChildren>
    {children}
  </ReactZoomChildren>
, mountNode);

Install

react-zoom-children

npm install -S react-zoom-children

Browser Support

|IE | Chrome | Firefox | Opera | Safari| | --- | --- | --- | --- | --- | | IE 10+ ✔ | Chrome 31.0+ ✔ | Firefox 31.0+ ✔ | Opera 30.0+ ✔ | Safari 7.0+ ✔ |

API

| props | type | default | description | |------------|----------------|---------|----------------| | prefix | string | 'rzc' | prefix class | | wrapperClassName | string | null | wrapper class name | | enlargedContent | ReactElement|null | null | Enlarged content | | transitionDuration | number | 0.4 | Transition duration in seconds| | transitionTimingFunction | string | 'cubic-bezier(0.4, 0, 0, 1)' | Transition timing function | | maskColor | string | 'rgb(255, 255, 255)' | mask background color | | maskOpacity | number | 1 | mask background opacity | | style | object | {} | wrapper style | | maskStyle | object | {} | mask style | | scaleBase | number | 1 | The base scale factor for zooming. By default scale to fit the window | | zIndex | number | 998 | The z-index that the wrapper will be added with | | customSize | object|string|null | null | Scale (zoom in) to given width and height. Ignore scaleBase if set. Alternatively, provide a percentage value relative to the original image size | | onOpen | function | () => {} | A callback function that will be called when a target is opened and transition has ended. It will get the target element as the argument| | onClose | function | () => {} | Same as above, except fired when closed | | onBeforeOpen | function | () => {} | A callback function that will be called before open | | onBeforeClose | function | () => {} | A callback function that will be called before close |

Development

npm install
npm start
npm run coverage

欢迎参与贡献

发现了错误? 向我发起一个 PR 吧! 参考 Commit message 和 Change log 编写指南 - 阮一峰的网络日志 提交 commit 即可。

致谢

  • father Library toolkit based on rollup, docz, storybook, jest, prettier and eslint,整合工具包简化了开源包开发,
  • drawer, zooming