react-parallax-card
React component for a card with 3D effects similar to Apple TV app icons. Work in progress. Heavily inspired by https://github.com/drewwilson/atvImg
Demo
https://theopak.github.io/react-parallax-card
Usage
# Install from npm npm install react-parallax-card --save
<ParallaxCard label='Label (optional)' enableRotate style= margin: '0 auto' width: 240 height: 240 > <img src='https://s3-us-west-1.amazonaws.com/tachyonsio/img/Blonde-Frank_Ocean.jpeg' width='240' role='presentation' /></ParallaxCard>
Alternative: Usage from cdn
Instead of installing from npm, you can use the standalone build (UMD module) by adding the script tag to your HTML. But if you do, you'll also need to include the dependencies separately.
<!-- NOTE: react must be included first --> <!-- Include react-parallax-card as 'window.ReactParallaxCard' -->
License
Copyright 2017 Theodore X. Pak
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.