Add and remove class in loop using jquery

Add and remove class in loop using jquery

function updateClass() {
  let a = $(".et_pb_column .num_rd.anim");
  a = a.parent().next(".et_pb_column");
  if (a.length == 0)
    a = $(".et_pb_column").first();
  a.find(".et_pb_column .num_rd").addClass("anim");
}

$(document).ready(function() {
  setInterval(function() {
    updateClass();
  }, x * 1000);
  setInterval(function() {
    $('.et_pb_column .num_rd').removeClass('anim');
  }, 4000);
});
Freelance Website Designer and Developer

Hire Our Website
Designer and Developer

Recent Solutions

Freelance Website Designer and Developer
Indoc Web Design

Copyright © 2024 All rights reserved
linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram