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/233f52e8cae14082f18a177c15c2ff02 to your computer and use it in GitHub Desktop.
Save christiannwamba/233f52e8cae14082f18a177c15c2ff02 to your computer and use it in GitHub Desktop.
//Preloader.js
import React, { Component } from 'react';
import styled from 'styled-components';
import { Motion, spring } from 'react-motion';
import './App.css';
const Loader = styled.div`
border: 16px solid #f3f3f3;
border-radius: 50%;
border-top: 16px solid #3498db;
margin: 0 auto;
width: 180px;
height: 180px;
transform: rotate(${props => props.transform}deg);
}
`;
// ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment