Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import { AnimationBuilder } from 'css-animator/builder';
const element = document.getElementById('animate');
const showButton = document.getElementById('showButton');
const shakeButton = document.getElementById('shakeButton');
const hideButton = document.getElementById('hideButton');
const animator = new AnimationBuilder();
animator
.setType('fadeInUp')
.setDelay(100)
.show(element);
showButton.onclick = () => {
showButton.setAttribute('disabled', '');
animator
.setType('fadeInUp')
.setDuration(1000)
.show(element)
.then(() => {
hideButton.removeAttribute('disabled');
shakeButton.removeAttribute('disabled');
import * as Hammer from 'hammerjs';
(window as any).Hammer = Hammer;
import { AnimationBuilder } from 'css-animator/builder';
import 'materialize-css';
import 'angular2-materialize';
AnimationBuilder.defaults.fixed = true;