Move one image inside other image

后端 未结 5 923
不思量自难忘°
不思量自难忘° 2021-01-02 00:24

Background

I am allowing user to upload an image inside mask image....

Once user upload image, I am filling user uploaded i

5条回答
  •  梦毁少年i
    2021-01-02 01:07

    I used the uploaded image as background image of a div, then moved the background position according to the move drag. The initial position is set to "0px 0px". Written in pure JS, You probably can make it shorter if you choose to use a JS library that handles the drag.

    Example here

提交回复
热议问题