@shoelace-style/animations
Version:
Your favorite animate.css effects available as ES modules for use with the Web Animations API.
14 lines (13 loc) • 647 B
JavaScript
export const shake = [
{ offset: 0, transform: 'translate3d(0, 0, 0)' },
{ offset: 0.1, transform: 'translate3d(-10px, 0, 0)' },
{ offset: 0.2, transform: 'translate3d(10px, 0, 0)' },
{ offset: 0.3, transform: 'translate3d(-10px, 0, 0)' },
{ offset: 0.4, transform: 'translate3d(10px, 0, 0)' },
{ offset: 0.5, transform: 'translate3d(-10px, 0, 0)' },
{ offset: 0.6, transform: 'translate3d(10px, 0, 0)' },
{ offset: 0.7, transform: 'translate3d(-10px, 0, 0)' },
{ offset: 0.8, transform: 'translate3d(10px, 0, 0)' },
{ offset: 0.9, transform: 'translate3d(-10px, 0, 0)' },
{ offset: 1, transform: 'translate3d(0, 0, 0)' }
];