From d60d73fbc1db7a80c3c242d4dcfefa148a2900e3 Mon Sep 17 00:00:00 2001 From: James Thaumiel Date: Tue, 18 Jun 2019 10:51:21 +0400 Subject: [PATCH] Rewrote the animation js without jquery --- index.html | 4 ++-- script/site.js | 16 +++++++++++----- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/index.html b/index.html index 6a42590..43f90e4 100644 --- a/index.html +++ b/index.html @@ -218,10 +218,10 @@

Brian Pye - + crossorigin="anonymous"> --> diff --git a/script/site.js b/script/site.js index 53c4eef..f179a5b 100644 --- a/script/site.js +++ b/script/site.js @@ -1,6 +1,12 @@ -$(function(){ +/* eslint-disable func-names */ +// eslint-disable-next-line strict +(() => { + setTimeout(() => { + document.querySelector('.hero-headerContainer').classList.add('pulse'); + }, 500); - setTimeout(function(){ $('.hero-headerContainer').addClass('pulse'); }, 500); - - setTimeout(function(){ $('.hero-iconContainer').addClass('pulse slower'); }, 900); -}) \ No newline at end of file + setTimeout(() => { + document.querySelector('.hero-iconContainer').classList.add('pulse'); + document.querySelector('.hero-iconContainer').classList.add('slower'); + }, 900); +})();