Create a gist now

Instantly share code, notes, and snippets.

Embed
//BlackBoxAnimated.js
import React, { Component } from 'react';
import styled from 'styled-components';
import PropTypes from 'prop-types';
import { Motion, spring } from 'react-motion';
const BlackBox = styled.div`
height: ${props => props.heightPercentage}%;
width: 100%;
background: #000;
transform-origin: ${props => props.xDirection} center;
`;
// ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment