Skip to content

Commit

Permalink
fix: fix classname typo
Browse files Browse the repository at this point in the history
  • Loading branch information
sghoweri committed Nov 4, 2019
1 parent 435243c commit da3c5f1
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,8 @@ class IFrame extends BaseLitComponent {
// @todo: refactor to better handle the iframe async rendering
if (this.iframe) {
if (animate === true) {
this.iframeContainer.classList.add('is-animate');
this.iframe.classList.add('is-animate');
this.iframeContainer.classList.add('is-animating');
this.iframe.classList.add('is-animating');
}

if (size < maxViewportWidth) {
Expand All @@ -178,8 +178,8 @@ class IFrame extends BaseLitComponent {
// auto-remove transition classes if not the animate param isn't set to true
setTimeout(function() {
if (animate === true) {
self.iframeContainer.classList.remove('vp-animate');
self.iframe.classList.remove('vp-animate');
self.iframeContainer.classList.remove('is-animating');
self.iframe.classList.remove('is-animating');
}
}, 800);

Expand Down

0 comments on commit da3c5f1

Please sign in to comment.