Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
run(){
if (this.refs.vivus === undefined) return;
var animate = this.props.options && this.props.options.animate || {};
new Vivus(ReactDOM.findDOMNode(this.refs.vivus), {
type: animate.type || 'delayed',
duration: animate.duration || 'delayed',
start: 'autostart',
selfDestroy: true
}, this.finish.bind(this));
}
finish() {
run(){
if (this.refs.vivus === undefined) return;
var animate = this.props.options && this.props.options.animate || {};
new Vivus(ReactDOM.findDOMNode(this.refs.vivus), {
type: animate.type || 'delayed',
duration: animate.duration || 'delayed',
start: 'autostart',
selfDestroy: true
}, this.finish.bind(this));
}
finish() {
run(){
if (this.refs.vivus === undefined) return;
var animate = this.props.options && this.props.options.animate || {};
new Vivus(ReactDOM.findDOMNode(this.refs.vivus), {
type: animate.type || 'delayed',
duration: animate.duration || 'delayed',
start: 'autostart',
selfDestroy: true
}, this.finish.bind(this));
}
finish() {
run(){
if (this.refs.vivus === undefined) return;
var animate = this.props.options && this.props.options.animate || {};
new Vivus(ReactDOM.findDOMNode(this.refs.vivus), {
type: animate.type || 'delayed',
duration: animate.duration || 'delayed',
start: 'autostart',
selfDestroy: true
}, this.finish.bind(this));
}
finish() {
run(){
if (this.refs.vivus === undefined) return;
var animate = this.props.options && this.props.options.animate || {};
new Vivus(ReactDOM.findDOMNode(this.refs.vivus), {
type: animate.type || 'delayed',
duration: animate.duration || 'delayed',
start: 'autostart',
selfDestroy: true
}, this.finish.bind(this));
}
finish() {
run(){
if (this.refs.vivus === undefined) return;
var animate = this.props.options && this.props.options.animate || {};
new Vivus(ReactDOM.findDOMNode(this.refs.vivus), {
type: animate.type || 'delayed',
duration: animate.duration || 'delayed',
start: 'autostart',
selfDestroy: true
}, this.finish.bind(this));
}
finish() {
run(){
if (this.refs.vivus === undefined) return;
var animate = this.props.options && this.props.options.animate || {};
new Vivus(ReactDOM.findDOMNode(this.refs.vivus), {
type: animate.type || 'delayed',
duration: animate.duration || 'delayed',
start: 'autostart',
selfDestroy: true
}, this.finish.bind(this));
}
finish() {
gotEl = (el: HTMLDivElement) => {
if (el) {
new Vivus(el.id, {
file: appWhiteContour,
type: "delayed",
start: "manual",
animTimingFunction: Vivus.EASE_OUT,
onReady: vivus => {
this.vivus = vivus;
this.update();
},
});
}
};