Share Posted March 23, 2016 Hello, I would like to initialize the start draggable plugin, at a position of 50% Y of the drag path ? (could apply on a for example circle). Is there any easy way to do it ? Thank you. See the Pen remjXv by lbineau (@lbineau) on CodePen Link to comment Share on other sites More sharing options...
Share Posted March 23, 2016 Hi blue-infinity pls check this out : See the Pen Kzmxay by MAW (@MAW) on CodePen 4 Link to comment Share on other sites More sharing options...
Author Share Posted March 24, 2016 Hi blue-infinity pls check this out : See the Pen Kzmxay by MAW (@MAW) on CodePen Thanks for the answer ! I think I also have to listen for the image loading, because the code is not working the first time (I guess that the dimensions of the image is not detected properly). Link to comment Share on other sites More sharing options...
Share Posted March 24, 2016 yep and another simplest solution ( without js ) is simply change your img css to this : img { max-width: 100%; height: auto; top:50%; transform:translate(0%,-50%); position:absolute; } See the Pen Kzmxay by MAW (@MAW) on CodePen 2 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now