A
A
Alex_872022-02-17 21:04:03
AJAX
Alex_87, 2022-02-17 21:04:03

How to smoothly display ajax posts in wordpress?

When you click on a category, posts are displayed, but it happens abruptly. How can this be changed?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nadim Zakirov, 2022-02-18
@zkrvndm

Use CSS for smooth appearance:

.container {
    animation: show 2s;
}

@keyframes show {
    from { opacity: 0; } to { opacity: 1; }
}

Where container is the class of those blocks in which the posts are located.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question