New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

parallex-image

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

parallex-image

Parallex Image is a port of [atvImg library](https://github.com/drewwilson/atvImg "atvImg library") in react. It gives you Apple TV 3D parallex effect.

  • 1.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Parallex-Image

Parallex Image is a port of atvImg library in react. It gives you Apple TV 3D parallex effect.

Install

npm install parallex-image --save

API

Data

  • layers: This is required. The images will be stacked on top of each other and the last element will be at the top.
  • isStatic: This is optional. When you pass true, it disables the parallex effect, and shows the flattened image (staticFallback) instead.
  • staticFallback: This is optional. Pass the flattened image that contains all the layers.

Example

import ParallexImage from 'parallex-image';

<ParallexImage
  layers={[
    '/assets/images/back.png',
    '/assets/images/front.png',
  ]}
  staticFallback="/assets/images/icon-flattened.png"
  isStatic={false}
  style={{ flex: 0.21, height: 100, textAlign: 'center' }}
/>

License

MIT

Keywords

FAQs

Package last updated on 01 Mar 2018

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