Lädt...

🔧 Drag and Drop Ui using html css and javascript https://www.instagram.com/webstreet_code/


Nachrichtenbereich: 🔧 Programmierung
🔗 Quelle: dev.to

Follow us on instagram: https://www.instagram.com/webstreet_code/

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Drag & Drop Image Upload</title>
    <style>
        body {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            height: 100vh;
            margin: 0;
            font-family: Arial, sans-serif;
            background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
            overflow: hidden;
        }

        h1 {
            display: block;
            color: white;
            font-size: 70px;
            font-weight: bolder;
            margin-bottom: 30px;
            text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
        }

        .upload-box {
            width: 320px;
            height: 320px;
            display: flex;
            justify-content: center;
            align-items: center;
            border-radius: 20px;
            background: rgba(255, 255, 255, 0.15);
            border: 2px dashed rgba(255, 255, 255, 0.2);
            box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
            backdrop-filter: blur(15px) saturate(200%);
            -webkit-backdrop-filter: blur(15px) saturate(200%);
            transition: all 0.3s ease;
            cursor: pointer;
            position: relative;
        }

        .upload-box:hover {
            border-color: rgba(255, 255, 255, 0.4);
            background: rgba(255, 255, 255, 0.25);
            box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
        }

        .upload-box.dragging {
            border-color: #00ff99;
        }

        .upload-box .icon {
            font-size: 70px;
            color: rgba(255, 255, 255, 0.7);
            transition: transform 0.2s;
        }

        .upload-box .icon:hover {
            transform: scale(1.2);
        }

        .upload-box img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 20px;
            display: none;
        }

        .upload-box img.visible {
            display: block;
        }
    </style>
</head>
<body>
    <h1>Drag & Drop</h1>
    <div class="upload-box" id="uploadBox">
        <div class="icon" id="uploadIcon">+</div>
        <img id="previewImage" src="" alt="Uploaded Image">
    </div>

    <script>
        const uploadBox = document.getElementById('uploadBox');
        const uploadIcon = document.getElementById('uploadIcon');
        const previewImage = document.getElementById('previewImage');

        // Drag over event
        uploadBox.addEventListener('dragover', (e) => {
            e.preventDefault();
            uploadBox.classList.add('dragging');
        });

        // Drag leave event
        uploadBox.addEventListener('dragleave', () => {
            uploadBox.classList.remove('dragging');
        });

        // Drop event
        uploadBox.addEventListener('drop', (e) => {
            e.preventDefault();
            uploadBox.classList.remove('dragging');
            const file = e.dataTransfer.files[0];
            if (file && file.type.startsWith('image/')) {
                const reader = new FileReader();
                reader.onload = function (event) {
                    previewImage.src = event.target.result;
                    previewImage.classList.add('visible');
                    uploadIcon.style.display = 'none';
                };
                reader.readAsDataURL(file);
            }
        });
    </script>
</body>
</html>

...

🔧 Drag and Drop Ui using html css and javascript https://www.instagram.com/webstreet_code/


📈 87.67 Punkte
🔧 Programmierung

🔧 Navbar Drawer using html css and javascript https://www.instagram.com/webstreet_code/


📈 63.85 Punkte
🔧 Programmierung

🔧 Tic-Tac-Toe Game using html css and javascript illusion https://www.instagram.com/webstreet_code/


📈 63.85 Punkte
🔧 Programmierung

🔧 3d Text Rotation illusion using html css and javascript https://www.instagram.com/webstreet_code/


📈 63.85 Punkte
🔧 Programmierung

🔧 Image Slider using html css and javascript coding https://www.instagram.com/webstreet_code/


📈 63.85 Punkte
🔧 Programmierung

🔧 Diwali animation using html ,css and javascript https://www.instagram.com/webstreet_code/


📈 63.85 Punkte
🔧 Programmierung

🔧 Create a drag and drop with Tailwind CSS and JavaScript


📈 37.21 Punkte
🔧 Programmierung

🔧 Create a drag and drop with Tailwind CSS and JavaScript


📈 37.21 Punkte
🔧 Programmierung

🔧 Learn how to create a drag and drop with Tailwind CSS and JavaScript


📈 37.21 Punkte
🔧 Programmierung

🔧 How to create a drag and drop with Tailwind CSS and JavaScript


📈 37.21 Punkte
🔧 Programmierung

🔧 Drag and Drop Components with basic CSS &amp; Javascript


📈 36.47 Punkte
🔧 Programmierung

🔧 Drag'n'Drop without CSS classes using ObservableTypes


📈 34.28 Punkte
🔧 Programmierung

🔧 Introduction of CSS, What is CSS, Why we use CSS and How CSS describe the HTML elements


📈 33.69 Punkte
🔧 Programmierung

🔧 Drag and Drop File using Javascript


📈 33.45 Punkte
🔧 Programmierung

🔧 Building a Responsive, Drag-and-Drop Image Gallery with React and Tailwind CSS 🎨


📈 31.68 Punkte
🔧 Programmierung

🔧 Implementing Drag and Drop to Arrange/Sort Items with React, Tailwind CSS, and Dnd-kit


📈 31.68 Punkte
🔧 Programmierung

🔧 Implementing Drag and Drop to Arrange/Sort Items with React, Tailwind CSS, and Dnd-kit


📈 31.68 Punkte
🔧 Programmierung

🔧 How Does User-Select CSS Affect Drag-and-Drop Performance?


📈 30.93 Punkte
🔧 Programmierung

🔧 Make an Image drag and drop with CSS in React


📈 30.93 Punkte
🔧 Programmierung

🔧 Make an Image drag and drop with CSS in React


📈 30.93 Punkte
🔧 Programmierung

🔧 Introducing DFlex - A Modern Javascript Drag and Drop Library


📈 29.35 Punkte
🔧 Programmierung

🕵️ Google Chrome up to 63 Omnibox javascript: URL Drag and Drop cross site scripting


📈 29.35 Punkte
🕵️ Sicherheitslücken

🔧 Interactive cards hover using the html css and javascript. Follow us on the instagram for more....


📈 29.24 Punkte
🔧 Programmierung

🔧 Build a Tic Tac Toe Game using HTML, CSS, JavaScript, Tailwind CSS and Canvas Confetti


📈 29.1 Punkte
🔧 Programmierung

🔧 Drag and Drop HTML elements and files


📈 29.06 Punkte
🔧 Programmierung

🔧 Drag and Drop Image uploader using React-dropzone and Cloudinary


📈 28.66 Punkte
🔧 Programmierung

🎥 Fullstack Drag & Drop Notes App with JavaScript


📈 28.61 Punkte
🎥 Video | Youtube

🕵️ Mozilla Firefox 3.6.28/10.0.3/11.0 Drag/Drop javascript: cross site scripting


📈 28.61 Punkte
🕵️ Sicherheitslücken

🕵️ Mozilla Firefox up to 52 javascript URI Drag &amp; Drop cross site scripting


📈 28.61 Punkte
🕵️ Sicherheitslücken

🕵️ Mozilla Thunderbird up to 1.0.2 javascript URI Drag &amp; Drop memory corruption


📈 28.61 Punkte
🕵️ Sicherheitslücken

🕵️ Mozilla Firefox up to 1.0.1 javascript URI Drag &amp; Drop cross site scripting


📈 28.61 Punkte
🕵️ Sicherheitslücken

🕵️ Mozilla Firefox up to 1.0 javascript URI Drag &amp; Drop denial of service


📈 28.61 Punkte
🕵️ Sicherheitslücken

🕵️ Mozilla Firefox 1.0 javascript URI Drag &amp; Drop memory corruption


📈 28.61 Punkte
🕵️ Sicherheitslücken