Jquery how to get draggablee to same X position but different Y position

246
January 12, 2017, at 03:33 AM

So if i have like this

<div  id="draggableHelper" style="display:inline-block; background: #000; margin-top: 80px; margin-left: 80px; overflow: hidden;">
<img id="image" src="http://letmeyoutube.com/tna/forum/uploads/profilepics/profilepic_1.jpg?dateline=1481225820" data-top="50px" data-left="100px">
</div>

And i want image to revert back to inside div to bottom or top corner, depending on which direction you move it. Here is GIF: for more explanation https://gyazo.com/efefac63dc6665390af3a59a0edd6c40 That grey is background, and those ice sticks are the image, which is supposed to stay inside that

READ ALSO
Clearing Out Sections of Page

Clearing Out Sections of Page

I've re-made a HTML site using JavaScript, I've completed one page and have two othersI want to ensure that before the new content is loaded with a button click that the content before it was cleared and the content area is fresh to put the new content...

156
How do I make a dropdown menu open and close on a Windows touchscreen in Edge and IE using CSS

How do I make a dropdown menu open and close on a Windows touchscreen in Edge and IE using CSS

I am working on a responsive version of our website and discovered in testing that our dropdown CSS navigation doesn't work in Microsoft Edge and Microsoft Explorer on a Windows touchscreen (I am testing on a Surface with Windows 10)The navigation works fine using Firefox,...

302
How to show black logo in mini fixed menu?

How to show black logo in mini fixed menu?

I have one issue with showing a logo in a small fixed menu, when the user scrolls down

229
Bootstrap with responsive navigation

Bootstrap with responsive navigation

I have a problem with bootstrap,trying to implement my own style for navigation and to use grid system from bootstrap to stay responsiveI'm trying to make when you go to smaller devices(xs,maybe sm) navigation be something like this:

235