aboutsummaryrefslogblamecommitdiffstats
path: root/packages/instant/src/components/animations/full_rotation.tsx
blob: 1dff1b1fc567052d7c70ba2d7f01c4470bb61fd4 (plain) (tree)
1
2
3
4
5
6

                                                      



                             









                                    
                                                          
                                                       

                                     
  
import { keyframes, styled } from '../../style/theme';

interface FullRotationProps {
    height: string;
    width: string;
}
const rotatingKeyframes = keyframes`
from {
  transform: rotate(0deg);
}

to {
  transform: rotate(360deg);
}
`;

export const FullRotation = styled.div<FullRotationProps>`
    animation: ${rotatingKeyframes} 2s linear infinite;
    height: ${props => props.height};
    width: ${props => props.width};
`;