-1

I am looking for a way to animate a picture using CSS. My goal is to make the picture move the same direction as the mouse on the page. If my mouse goes up, the picture goes up, if I move right, it goes right, the same for up and down.

Is it possible ? And if it is how can I do it ?

Thanks

1 Answers1

0

only with pure css I am not sure if its possible, but look at this answer here which might give you a good lead

images move dependently of mouse position

Community
  • 1
  • 1
Scoala
  • 150
  • 11