After a week I stumbled upon an answer by a complete coincidence. Turns out there is a whole science based on such things, called Motion Graphics.
A typical software, used for the creation of such things is Adobe After Effects, and the effect I was trying to achieve is called Cinemagraph. Therefore such designs can be achieved by following cinemagraph tutorials.