Skip to content

Commit

Permalink
removed unnecessary animations
Browse files Browse the repository at this point in the history
  • Loading branch information
gautamjajoo committed Jul 14, 2021
1 parent e6f45ca commit aa71786
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions frontend_v2/src/app/components/home/home.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,36 +191,6 @@ export class HomeComponent implements OnInit, AfterViewInit, OnDestroy {
this.disappearAppear(c, this);
}

/**
* Fly left animation
*/
flyLeftRecursive = (element, temp) => {
const x = temp - 1;
if (x > -100) {
(function (scope) {
setTimeout(function () {
element.style.marginLeft = x + '%';
scope.flyLeftRecursive(element, x);
}, 5);
})(this);
}
};

/**
* Fly right animation
*/
flyRightRecursive = (element, temp) => {
const x = temp + 1;
if (x < 100) {
(function (scope) {
setTimeout(function () {
element.style.marginLeft = x + '%';
scope.flyRightRecursive(element, x);
}, 5);
})(this);
}
};

/**
* Fly out animation
*/
Expand Down

0 comments on commit aa71786

Please sign in to comment.