Skip to content

Commit

Permalink
fix: lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
mhaack committed Sep 12, 2023
1 parent 97a8302 commit 13834f9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions blocks/we-see/we-see.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,13 @@ export default async function decorate(block) {

// prepare the animations
await loadScript('https://unpkg.com/scroll-out/dist/scroll-out.min.js');
// eslint-disable-next-line no-undef
ScrollOut({
// eslint-disable-next-line func-names, object-shorthand
onShown: function (el) {
let ani = '';
ani = el.getAttribute('data-animation');
const ani = el.getAttribute('data-animation');
el.classList.remove(ani);
// eslint-disable-next-line no-void
void el.offsetWidth;
el.classList.add(ani);
},
Expand Down

0 comments on commit 13834f9

Please sign in to comment.