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