Position images / background images relative to the mouse

I would like to know how effective is the animation of the position of the images (or background images) in relation to the mouse . Take github for example:

https://github.com/thispagedoesntexist

This is one page hello sexy 404.

I want to influence my users, and this certainly does it, in my opinion.

Questions

1) How can this be done?

2) Just CSS? CSS and JS?

3) And finally, any libraries for such things?

+6
source share
1 answer

This was done using a jQuery plugin called Plax .

+4
source

Source: https://habr.com/ru/post/987704/


All Articles