How to remove the desired text on the page after the time I need?

  • 0
    The logic is simple:

    When adding an article, this line comes out through the template engine.

    the code in the template:
    <p style="color: green">Статья успешно добавлена</p>


    Task:
    It is necessary to implement a function that will remove this line after some time.
    I myself know that there are many options to implement it, but I need the most optimal one, which will not load the server, will be fast and beautiful.

    The option with disappearing through ccc animation, as for me, will not work. The text will disappear, but the white space will remain.
    JavaScript Anonymous, Dec 25, 2019

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