Execute callback after changing style attribute via JS on element?

  • 0
    There is a block, through JS the style.display is changed to 'block'. After changing the display property, you need to call the function.
    JavaScript Isla Elliott, Aug 8, 2019

  • 1 Answers
  • 0
    So what's the problem?

    You wrap style.display in a function and call callback () in it

    function elementShow(callback){

    elementShow(() => {
    //та самая callback функция

Your Answer
To place the code, please use CodePen or similar tool. Thanks you!