Background
I am allowing user to upload an image inside mask image....
Once user upload image, I am filling user uploaded image inside mask image :
1.Mask image :
2.user uploaded image :
3.User uploaded image on mask [Final image ] :
Codepen : https://codepen.io/kidsdial2/pen/OdyemQ
JSfiddle : http://jsfiddle.net/2xq8p0zy/
Html
<body>
<img src="http://139.59.24.243/images/invitations/birthday/a.jpg" alt="">
</body>
css
body {
background-color: #111;
color: #555;
font-size: 1.1em;
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
img {
margin: 20px auto;
display: block;
width: 100%;
height: 500px;
-webkit-mask-image: url(http://139.59.24.243/images/invitations/birthday/ice.png);
mask-image: url(http://tympanus.net/codrops-playground/assets/images/cssref/properties/mask-image/mask-image.png);
-webkit-mask-position: center center;
mask-position: center center;
-webkit-mask-repeat: no-repeat;
mask-repeat: no-repeat;
}
Requirement:
I want to give an option to move the user uploaded image inside mask image as in this fiddle :
http://jsfiddle.net/aLcb4sb5/ or link
Issue :
but currenly in website both images are moving....