Answers for "convert jquery fadeOut function to pure javascript code"

0

convert jquery fadeOut function to pure javascript code

//javascript
el.classList.add('hide');
el.classList.remove('show');

//css
.show {
  opacity: 1;
}
.hide {
  opacity: 0;
  transition: opacity 400ms;
}
Posted by: Guest on August-17-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language