How to refresh a page with a transition effect ?

How to refresh a page with a transition effect ?

Hello everyone,

I have a single html file called "refresh-with-transition.html".
This html file is made of a single inner page called "template".
This "template" page is made of buttons.
Those buttons link the page itself : while reloading the page I would like a transition effect to occur.

Why ? 
That's because the content of the page is suposed to be updated while refreshing.
I say supposed because I am not focused on this update part so far but only struggling with the transitions

Can you help me ? 

Thanks