import * as React from 'react'; import styled, { keyframes } from 'styled-components'; export const HeroAnimation = () => ( ); const moveUp = keyframes` 0% { transform: translate3d(0, 0, 0) } 45% { transform: translate3d(0, 0, 0) } 55% { transform: translate3d(0, -7%, 0) } 85% { transform: translate3d(0, -7%, 0) } 100% { transform: translate3d(0, 0, 0) } `; const moveLeft = keyframes` 0% { transform: translate3d(0, 0, 0) } 45% { transform: translate3d(0, 0, 0) } 55% { transform: translate3d(-7%, 0, 0) } 85% { transform: translate3d(-7%, 0, 0) } 100% { transform: translate3d(0, 0, 0) } `; const moveDiag = keyframes` 0% { transform: translate3d(0, 0, 0) } 45% { transform: translate3d(0, 0, 0) } 55% { transform: translate3d(5%, 5%, 0) } 85% { transform: translate3d(5%, 5%, 0) } 100% { transform: translate3d(0, 0, 0) } `; const moveRight = keyframes` 0% { transform: translate3d(0, 0, 0) } 45% { transform: translate3d(0, 0, 0) } 55% { transform: translate3d(7%, 0, 0) } 85% { transform: translate3d(7%, 0, 0) } 100% { transform: translate3d(0, 0, 0) } `; const spin = keyframes` 0% { transform: rotate(0deg) } 65% { transform: rotate(0deg) } 85% { transform: rotate(90deg) } 100% { transform: rotate(90deg) } `; const moveIn = keyframes` 0% { opacity: 0; transform: scale(1.7) rotate(-30deg) } 100% { opacity: 1; transform: scale(1) rotate(0deg) } `; const Image = styled.svg` opacity: 0; transform: scale(1.5) rotate(-30deg); animation: ${moveIn} 2s forwards; `; const TopCircle = styled.circle` animation: ${moveUp} 4s -2.85s infinite; `; const LeftCircle = styled.circle` animation: ${moveLeft} 4s -2.85s infinite; `; const Oblong = styled.path` animation: ${moveLeft} 4s -2.85s infinite; `; const Square = styled.path` animation: ${moveDiag} 4s -2.85s infinite; `; const Rectangle = styled.path` animation: ${moveRight} 4s -2.85s infinite; `; const Logo = styled.path` animation: ${spin} 4s -2.8s infinite; transform-origin: 202px 202.7px; `;