@emotion/react#keyframes JavaScript Examples

The following examples show how to use @emotion/react#keyframes. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: styles.js    From tonic-ui with MIT License 6 votes vote down vote up
pulse = keyframes`
  0% {
    opacity: 1;
  }
  50% {
    opacity: .4;
  }
  100% {
    opacity: 1;
  }
`
Example #2
Source File: styles.js    From tonic-ui with MIT License 6 votes vote down vote up
wave = keyframes`
  0% {
    transform: translateX(-100%);
  }
  60% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(100%);
  }
`
Example #3
Source File: styles.js    From tonic-ui with MIT License 6 votes vote down vote up
getLineAnimation = ({
  circumference,
  strokeWidth,
}) => {
  return keyframes`
    0% {
      stroke-dasharray: 0, ${circumference};
      stroke-dashoffset: 0;
    }
    50% {
      stroke-dasharray: ${circumference * 0.6}, ${circumference};
      stroke-dashoffset: -${circumference * (1 - 0.6) - strokeWidth * 4};
    }
    100% {
      stroke-dasharray: ${circumference * 0.6}, ${circumference};
      stroke-dashoffset: -${(circumference * 1 - strokeWidth * 4)};
    }
  `;
}
Example #4
Source File: Icon.js    From tonic-ui with MIT License 5 votes vote down vote up
cwSpin = keyframes`
  0% {
      transform: rotate(0deg)
  }
  to {
      transform: rotate(1turn)
  }
`
Example #5
Source File: Icon.js    From tonic-ui with MIT License 5 votes vote down vote up
ccwSpin = keyframes`
  0% {
      transform: rotate(0deg)
  }
  to {
      transform: rotate(-1turn)
  }
`
Example #6
Source File: SearchInput.js    From tonic-ui with MIT License 5 votes vote down vote up
spin = keyframes`
  0% {
    transform: rotate(0eg);
  }
  100% {
    transform: rotate(359deg);
  }
`
Example #7
Source File: styles.js    From tonic-ui with MIT License 5 votes vote down vote up
baseAnimation = keyframes`
  100% {
    transform: rotate(360deg);
  }
`
Example #8
Source File: AnimatedCubeDemo.jsx    From tonic-ui with MIT License 5 votes vote down vote up
cubeSpin = keyframes`
  from { transform: rotateY(360deg); }
  to { transform: rotateY(0deg); }
`
Example #9
Source File: FontAwesomeIcon.jsx    From tonic-ui with MIT License 5 votes vote down vote up
spinKeyframes = keyframes`
  0% {
    transform: rotate(0eg);
  }
  100% {
    transform: rotate(359deg);
  }
`
Example #10
Source File: FontAwesomeIcon.jsx    From tonic-ui with MIT License 5 votes vote down vote up
spinReverseKeyframes = keyframes`
  0% {
    transform: rotate(359deg);
  }
  100% {
    transform: rotate(0deg);
  }
`