HTML CSS & JAVASCRIPT, YouTube

Drag and Drop Card Using HTML CSS And JavaScript

Drag-and-Drop-Card-Using-HTML-CSS-And-JavaScript

Coding BD given Drag and Drop Card Using HTML CSS And JavaScript. You can create drag and drop card html css javascript. We created a drag and drop card. It is the most important part Of drag and drop cards javascript. We have given more importance to drag and drop card html css. They used pure css effects. because they need a highly effective carousel. Thank you so much.

😍😍 If You like this video Please like, share and subscribe This video.😍😍 

😍😍 Check Others Programming Video👇

➡️ Parallax Animation effects: https://www.youtube.com/watch?v=pRvNZ6aMBoo 
➡️ Parallax Animation effects: https://www.youtube.com/watch?v=pRvNZ6aMBoo 

➡️ Sticky Navigation Bar On Scroll Using Vanilla Javascript:https://www.youtube.com/watch?v=XQJSc–XgO8    

➡️ How to Download Source code in Coding BD: https://www.youtube.com/watch?v=WXAZ-BScKBE&t=3s  

➡️Responsive website html css javascript | part( 1 ): https://www.youtube.com/watch?v=g0ART… 

➡️ Responsive Services Section: https://www.youtube.com/watch?v=wvLky…

➡️ Plane animation only html css:https://www.youtube.com/watch?v=XcYlfp8sFX0 

➡️ CSS Responsive CARD Hover Effects & Adding Stroke to Text | Html5 CSS3 2021: https://www.youtube.com/watch?v=QVMJ5…

➡️  Neon Light Button Animation Effects on Hover | CSS Snake Border: https://www.youtube.com/watch?v=GtVSF… 

➡️ Responsive Box Model Web Design Using CSS Flexbox: https://www.youtube.com/watch?v=03RuV… 

➡️ Digital Clock with Animated Progress-bar | HTML CSS & Vanilla Javascript: https://www.youtube.com/watch?v=6A6Hp… 

➡️ How to create a light to dark mode for HTML CSS & Vanilla Javascript 2021: https://www.youtube.com/watch?v=43FbR…  

➡️Scroll top button : https://www.youtube.com/watch?v=9fDEJ…

Here is (Turning pages animation with only css) Source code. You can follow this steps:

  1. Create 1 folder
  2. create 1 HTML file: index.html
  3. create 1 CSS file: style.css
  4. write HTML code on HTML file, copy CSS code and past CSS file
  5. Now give a smile and jump out loud. 😍😍
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Card Drag and Drop || Coding BD</title>

    <!-- =====-------------------------- CSS --------------------------===== -->
    <link rel="stylesheet" href="styles.css">

    <!-- =====-------------------------- BOX ICONS --------------------------===== -->
    <link href='https://unpkg.com/[email protected]/css/boxicons.min.css' rel='stylesheet'>
</head>

<body>
    <div class="drop">
        <div class="drop__container" id='drop-item'>
            <div class="drop__card">
                <div class="drop__data">
                    <img src="img/img1.jpg" alt="" class="drop__img">
                    <div>
                        <h1 class="drop__name">Sajjat Hossain</h1>
                        <span class="drop__proffession">Web Developer</span>
                    </div>
                </div>
                <div>
                    <a href="#" class="drop__soc"><i class='bx bxl-instagram'></i></a>
                    <a href="#" class="drop__soc"><i class='bx bxl-facebook'></i></a>
                    <a href="#" class="drop__soc"><i class='bx bxl-twitter' ></i></a>
                </div>
            </div>
            <div class="drop__card">
                <div class="drop__data">
                    <img src="img/img2.jpg" alt="" class="drop__img">
                    <div>
                        <h1 class="drop__name">Samiha mittal</h1>
                        <span class="drop__proffession">UI/UX Designer</span>
                    </div>
                </div>
                <div>
                    <a href="#" class="drop__soc"><i class='bx bxl-instagram'></i></a>
                    <a href="#" class="drop__soc"><i class='bx bxl-facebook'></i></a>
                    <a href="#" class="drop__soc"><i class='bx bxl-twitter' ></i></a>
                </div>
            </div>
            <div class="drop__card">
                <div class="drop__data">
                    <img src="img/img3.jpg" alt="" class="drop__img">
                    <div>
                        <h1 class="drop__name">Arefin Ahmed</h1>
                        <span class="drop__proffession">Front-end Developer</span>
                    </div>
                </div>
                <div>
                    <a href="#" class="drop__soc"><i class='bx bxl-instagram'></i></a>
                    <a href="#" class="drop__soc"><i class='bx bxl-facebook'></i></a>
                    <a href="#" class="drop__soc"><i class='bx bxl-twitter' ></i></a>
                </div>
            </div>
            <div class="drop__card">
                <div class="drop__data">
                    <img src="img/img4.jpg" alt="" class="drop__img">
                    <div>
                        <h1 class="drop__name">Angel Kia</h1>
                        <span class="drop__proffession">Web Developer</span>
                    </div>
                </div>
                <div>
                    <a href="#" class="drop__soc"><i class='bx bxl-instagram'></i></a>
                    <a href="#" class="drop__soc"><i class='bx bxl-facebook'></i></a>
                    <a href="#" class="drop__soc"><i class='bx bxl-twitter' ></i></a>
                </div>
            </div>
        </div>
    </div>

    <!-- =====-------------------------- Javascript  --------------------------===== -->
    <script src="https://cdn.jsdelivr.net/npm/[email protected]/Sortable.min.js"></script>

    <script src="./main.js"></script>
</body>

</html>
/*=====-------------------------- GOOGLE FONTS --------------------------=====*/
@import url("https://fonts.googleapis.com/css2?family=Ubuntu:[email protected];500&display=swap");

/*=====-------------------------- VARIABLES CSS --------------------------=====*/
:root {
  /*=====-------------------------- Colors --------------------------=====*/
  --first-color: #272A3A;
  --first-color-light: #8A8EAA;
  --first-color-lighten: #F8F8FC;

  /*=====-------------------------- Font and typography --------------------------=====*/
  --body-font: 'Ubuntu', sans-serif;
  --normal-font-size: 1rem;
  --smaller-font-size: .813rem;
}

/*=====-------------------------- BASE --------------------------=====*/
*,::before,::after{
  box-sizing: border-box;
}

body{
  margin: 0;
  padding: 0;
  font-family: var(--body-font);
  background-color: var(--first-color-lighten);
}

h1{
  margin: 0;
}

a{
  text-decoration: none;
}

img{
  max-width: 100%;
  height: auto;
}


/*=====-------------------------- DRAG and DROP --------------------------=====*/
.drop, .drop__container{
  display: grid;
}

.drop{
  height: 100vh;
  align-items: center;
  justify-content: center;
}

.drop__container{
  row-gap: 1rem;
  padding: 2rem;
  box-shadow: 4px 4px 16px #E1E1E1;
}

.drop__card, .drop__data{
  display: flex;
  align-items: center;
}
.drop__card{
  width: 360px;
  justify-content: space-between;
  padding: .75rem 1.25rem .75rem .75rem;
  background: var(--first-color-lighten);
  box-shadow: 4px 4px 16px #E1E1E1,
            -2px -2px 16px #fff;
  border-radius: 2.5rem;
}

.drop__img{
  width: 55px;
  height: 55px;
  border-radius: 50%;
  margin-right: 1rem;
}

.drop__name{
  font-size: var(--normal-font-size);
  color: var(--first-color);
}

.drop__proffession{
  font-size: var(--smaller-font-size);
  color: var(--first-color-light)
}

.drop__social{
  margin: 0 .375rem;
  color: var(--first-color-light);
  transition: .4s;
}

.drop__social:hover{
  color: var(--first-color);
}

/*-------------------------- Class name for the chosen item --------------------------*/

.sortable-chosen{
  box-shadow: 8px 8px 32px #E1E1E1;
}

/*-------------------------- Class name for the dragging item --------------------------*/

.sortable-drag{
  opacity: 0;
}
/*=====-------------------------- DRAG and DROP --------------------------=====*/
const dropItem = document.getElementById('drop-item');

new Sortable(dropItem, {
	animation: 350,
	chosenClass: 'sortable-chosen',
	dragClass: 'sortable-drag'
})

Don’t Forget to Follow me on all Social Network

YouTube: https://www.youtube.com/channel/UCw9etYfx-25oKB_qt1fFNWw

Facebook Page: https://www.facebook.com/codingbd2021

LinkedIn: https://www.linkedin.com/in/sajjat-ho… 

GitHub: https://github.com/cgsaleh8383

You can see Plane animation only html css

Related Posts

Leave a Reply

Your email address will not be published.