Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@christiannwamba
Created May 30, 2018 14:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save christiannwamba/12ef6ca0703c26d596020968d8daf7e5 to your computer and use it in GitHub Desktop.
Save christiannwamba/12ef6ca0703c26d596020968d8daf7e5 to your computer and use it in GitHub Desktop.
//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