Instantly share code, notes, and snippets.

Embed
What would you like to do?
//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