@rocketsofawesome/mirage
Version:
[Live Demo of the Pattern Library](https://rocketsofawesome.github.io/mirage/)
22 lines (19 loc) • 426 B
JavaScript
import { css, keyframes } from 'styled-components'
const wiggle = keyframes`
10%, 90% {
transform: translate3d(-1px, 0, 0);
}
20%, 80% {
transform: translate3d(2px, 0, 0);
}
30%, 50%, 70% {
transform: translate3d(-4px, 0, 0);
}
40%, 60% {
transform: translate3d(4px, 0, 0);
}
`
const style = css`
animation: ${wiggle} 0.82s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
`
export default style