Source: Components/Container/cleanContainer.js

import { showLoader } from "./showLoader";

/**
 * @author: Vallejos Jose Luis.
 * @function: cleanContainer
 * @name: cleanContainer
 * @description: This function aplly the class 'isDesappear' to the container and then remove the innerHTML of the container.
 * @param: none
 * @return: none
 */
export const cleanContainer = () => {
  /**
   * @name: container
   * @description: This variable is the Container of the card.
   * @type: HTMLElement
   */
  const container = document.getElementsByClassName("Card")[0];

  container.classList.add("isDesappear");

  setTimeout(() => {
    showLoader();
  }, 500);
};