Skip to content

Commit

Permalink
Re-build
Browse files Browse the repository at this point in the history
  • Loading branch information
scriptex committed May 30, 2018
1 parent adf768c commit e254ef2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
14 changes: 12 additions & 2 deletions dist/animate.me.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,10 @@ function () {
this.getWindowDimensions();
this.scrollListener = this.scrollListener.bind(this);
this.resizeListener = this.resizeListener.bind(this);
this.start = this.start.bind(this);
this.cleanup = this.cleanup.bind(this);
this.destroy = this.destroy.bind(this);
this.listen();
this.start();
return this;
}
Expand All @@ -145,6 +149,13 @@ function () {
this.updateOffsets();
this.bind();
}
}, {
key: "listen",
value: function listen() {
this.win.addEventListener('animateme:enable', this.start, false);
this.win.addEventListener('animateme:cleanup', this.cleanup, false);
this.win.addEventListener('animateme:destroy', this.destroy, false);
}
}, {
key: "getCurrentScroll",
value: function getCurrentScroll() {
Expand Down Expand Up @@ -188,8 +199,7 @@ function () {
value: function cleanup() {
var _this = this;

var elements = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.animated;
[].forEach.call(elements, function (element) {
[].forEach.call(this.animated, function (element) {
element.classList.remove(_this.options.animatedIn);
});
}
Expand Down
2 changes: 1 addition & 1 deletion dist/animate.me.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e254ef2

Please sign in to comment.