Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

mahmed1

Members
  • Joined

  • Last visited

  1. mahmed1 replied to mahmed1's topic in Frontend
    Thanks for something I already knew - you could have just said pay me and il do it. Hopefully someone else can actually help me
  2. mahmed1 replied to mahmed1's topic in Frontend
    Thank you How would i amend my code to ensure that when i drag the image - it keeps the other images in the same location and it fits nicely into the div im dragging to? I also need want to apply an animation that i have created using a keystroke called shake onto the image i drag once its been dragged to the dop area Ie Drag image Drop image (fit nicely into drop div) Leave other images position the same Apply shake animation on the drag image once dropped
  3. mahmed1 replied to mahmed1's topic in Frontend
    Hi - yes at some point it will go live and for now im just opening that spreadsheet In the near future that might change Is there sny other way you can help me by looking at the code or by me sending you the code? thanks
  4. mahmed1 replied to mahmed1's topic in Frontend
    Which other way shall i upload all the code - this is all very new to me - sorry Thank you
  5. mahmed1 replied to mahmed1's topic in Frontend
    Im practicing on my desktop
  6. mahmed1 replied to mahmed1's topic in Frontend
    Hi Its for a local charity that i said il try and see if i can do this for them This is more learning purposes- i have provided the code above. Like i said, it's nothing to do with business and i dont get paid for something i am learning. If you can help me then thank you.
  7. mahmed1 replied to mahmed1's topic in Frontend
    Hi - im not getting paid for this It is for charity and more my development? Not sure why this question was asked though?
  8. mahmed1 replied to mahmed1's topic in Frontend
    Hi - is there any chance i can get help with this. I apologise if i have posted incorrectly
  9. mahmed1 posted a topic in Frontend
    Hi All This is my 1st post so apologies if i am posting incorrectly I am completely new to web development -i am learning HTML, CSS and Javascript I have been tasked to created a webpage front page that has some images that float about. When a user drags an image into an area (in my case another div) - i want to open up a link Now so far i have managed to get the animation that shows the images floating I have also managed to get the image to drag and drop into the div area but i am having a couple of if issues 1) when i drag an image, it does not fit nicely into the div area 2) the 3 images that are aligned gets floated - once i drag and drop the image - i want to be able to leave the 2 other images where they are so it doesnt move and leaves an empty space where the image has been dragged from 3) I want to be able to cancel the animation on the image that has been dragged so its not floating anymore and then open up a link (in my case a spreadsheet) How can i achieve the above without having to learn Jquery as this is way too advanced for me at the minute This is my code <!DOCTYPE html> <html> <head> <title>"Drag and Drop"</title> <style> #data{ opacity: 0.3; width: 100%; height: 100%; } #container { position: relative; width: 1900px; height: 950px; top:0px; left: 0px; } .WipImage { position:absolute; width: 1300px; height: 300px; top:100px; left: 320px; } .box2_container { position:absolute; width: 340px; height: 270px; top:450px; left: 730px; border: 1px solid red; } #Image1 { width: 350px; height: 250px; top:0px; left: 0px; float: left; margin: 20px; box-shadow: 0 5px 15px 0px rgba(0,0,0,0.6); transform: translatey(0px); animation-name: float; animation-iteration-count: infinite; animation-duration: 5s; animation-timing-function: ease-in-out; } #Image2 { width: 350px; height: 250px; top:250px; left: 250px; float: left; margin: 20px; box-shadow: 0 5px 15px 0px rgba(0,0,0,0.6); transform: translatey(0px); animation-name: float; animation-iteration-count: infinite; animation-duration: 5s; animation-timing-function: ease-in-out; animation-delay: 0.5s; } #Image3 { width: 350px; height: 250px; top:250px; left: 250px; float: left; margin: 20px; box-shadow: 0 5px 15px 0px rgba(0,0,0,0.6); transform: translatey(0px); animation-name: float; animation-iteration-count: infinite; animation-duration: 5s; animation-timing-function: ease-in-out; } @keyframes float { 0% { box-shadow: 0 5px 15px 0px rgba(0,0,0,0.6); transform: translatey(0px); } 50% { box-shadow: 0 25px 15px 0px rgba(0,0,0,0.2); transform: translatey(-20px); } 100% { box-shadow: 0 5px 15px 0px rgba(0,0,0,0.6); transform: translatey(0px); } } </style> <script type="text/javascript"> function allowDrop(ev){ ev.preventDefault(); } function allowLeave(ev){ ev.preventDefault(); } function drag(ev){ ev.dataTransfer.setData("content", ev.target.id); } function drop(ev){ ev.preventDefault(); var image = ev.dataTransfer.getData("content"); ev.target.appendChild(document.getElementById(image)); ev.target.style.background = "Red"; } </script> </head> <body> <div id ="container"> <img src="data.jpeg" id="data"/> <div class="WipImage"> <img src="WipImage.png" id="Image1" alt="Wip" draggable="true" ondragstart="drag(event)"/> <img src="WipImage.png" id="Image2" alt="Wip" draggable="true" ondragstart="drag(event)"/> <img src="WipImage.png" id="Image3" alt="Wip" draggable="true" ondragstart="drag(event)"/> </div> <div class="box2_container" ondrop="drop(event)" ondragover="allowDrop(event)" ondragleave="allowLeave(event)"> </div> </div> </body> </html>

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.