HTML AND CSS, YouTube

Modal using only css

Modal using only css

Coding BD given Modal using only css. It is the most important part Of css modal. We have given more importance to animated modal box css. They used pure  css effects. because they need a highly effective image gallery. You can use your website section. Thank you so much.

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

😍😍 Check Others Programming Video👇

➡️ Turning pages animation with only css: https://youtu.be/kI3MjJ5mVUs

➡️ 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…

➡️ CSS Clip Path Hover Circle Hover Effects: https://www.youtube.com/watch?v=cRSgo…

➡️ 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…

➡️ Animated eid mubarak 2021 using Html CSS & Javascript: https://www.youtube.com/watch?v=60H2g…

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. 😍😍
@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Festive&family=Indie+Flower&display=swap');
*, *::before, *::after {
  padding: 0;
  margin: 0 auto;
  box-sizing: border-box;
}

body {
    font-family: 'Indie Flower', cursive;
  background-image: radial-gradient(circle at center, #fff, #aaa);
  color: #333;
  font-weight: 600;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

#moreInfo {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  position: fixed;
  top: -100%;
  left: -100%;
}

.mi {
  --openText: "Click to open...";
  --altText: "😎";
  --img: url("https://images.unsplash.com/photo-1625153674020-a5234b66c39d?ixid=MnwxMjA3fDB8MHxlZGl0b3JpYWwtZmVlZHwyNnx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=60");
  --fullText: "Lorem ipsum dolor, sit amet consectetur adipisicing elit. Illum porro delectus magni mollitia aut eligendi. Perferendis tenetur asperiores blanditiis nobis sint aliquam rem, facere dolores. Ipsa eveniet libero enim quisquam.";
 
  position: relative;
  width: 12em;
  height: 4em;
  background-image: var(--img);
  background-position: right;
  background-size: 300% 300%;
  transition: transform 0.5s 0s;
  transform-style: preserve-3d;
  perspective: 40em;
}
.mi-outer {
  filter: drop-shadow(0.4em 0.2em 1em #0004);
}
.mi > * {
  position: absolute;
  transform-style: preserve-3d;
}
.mi > *::before, .mi > *::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
}
.mi-flap1 {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform-origin: top;
  transition: transform 0.5s 1.5s;
}
.mi-flap1::before {
  content: var(--openText);
  background-color: #eee;
  border: 2px solid #555;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.25s;
}
.mi-flap1::after {
  background-image: var(--img);
  background-position: top right;
  background-size: 300% 300%;
  transform: rotateX(180deg);
}
.mi-flap1:hover::before {
  border-color: #585;
}
.mi-flap2 {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform-origin: bottom right;
  transition: transform 0.5s 1s;
}
.mi-flap2::before {
  content: var(--altText);
  background-color: #eee;
  border: 2px solid #555;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mi-flap2::after {
  background-image: var(--img);
  background-position: bottom right;
  background-size: 300% 300%;
  transform: rotateX(180deg);
}
.mi-flap3 {
  top: -100%;
  left: 0;
  width: 100%;
  height: 300%;
  transform-origin: right;
  visibility: hidden;
  transition: visibility 0s 1s, transform 0.5s 0.5s;
}
.mi-flap3::before {
  background-image: var(--img);
  background-position: right;
  background-size: 300% 100%;
}
.mi-flap3 .mi-info {
  background-position: right;
}
.mi-flap3 .mi-info::after {
  left: -200%;
}
.mi-flap4 {
  top: -100%;
  left: 0;
  width: 100%;
  height: 300%;
  transform-origin: left;
  visibility: hidden;
  transition: visibility 0s 1s, transform 0.5s 0s;
}
.mi-flap4::before {
  background-image: var(--img);
  background-position: left;
  background-size: 300% 100%;
}
.mi-flap4::after {
  content: unset;
}
.mi-flap4 .mi-info {
  background-position: left;
}
.mi-flap4 .mi-info::after {
  left: 0%;
}
.mi-flap5 {
  top: -100%;
  left: 0;
  width: 100%;
  height: 300%;
  visibility: hidden;
  transform: rotateY(180deg);
  transition: visibility 0s 0.5s;
}
.mi-flap5 .mi-info {
  background-position: center;
}
.mi-flap5 .mi-info::after {
  left: -100%;
}
.mi .mi-info {
  position: relative;
  width: 100%;
  height: 100%;
  background-image: var(--img);
  background-size: 300% 100%;
  transform: rotateY(180deg);
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
  overflow: hidden;
  transform-style: preserve-3d;
}
.mi .mi-info::after {
  padding: 2em 2em 2em;
  content: var(--fullText);
  position: absolute;
  top: 0%;
  width: 300%;
  height: 100%;
  font-size: 20px;
  background-color: #fffa;
}

.mi .mi-close {
  position: absolute;
  top: 0;
  left: 0;
  padding: 0.5em;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 1px solid #CECECE;
  cursor: pointer;
  transition: color 0.25s;
  transform-style: preserve-3d;
  -webkit-transition: color 0.25s;
  -moz-transition: color 0.25s;
  -ms-transition: color 0.25s;
  -o-transition: color 0.25s;
}
.mi .mi-close:hover {
  color: #585;
}

#moreInfo:checked ~ .mi-outer > .mi > .mi-flap1 {
  pointer-events: none;
  transform: rotateX(180deg);
  transition: transform 0.5s 0s;
}
#moreInfo:checked ~ .mi-outer > .mi > .mi-flap2 {
  transform: rotateX(-180deg);
  transition: transform 0.5s 0.5s;
}
#moreInfo:checked ~ .mi-outer > .mi > .mi-flap3 {
  transform: rotateY(180deg);
  visibility: visible;
  transition: visibility 0s 1s, transform 0.5s 1s;
}
#moreInfo:checked ~ .mi-outer > .mi > .mi-flap4 {
  transform: rotateY(-180deg);
  visibility: visible;
  transition: visibility 0s 1s, transform 0.5s 1.5s;
}
#moreInfo:checked ~ .mi-outer > .mi > .mi-flap5 {
  visibility: visible;
  transition: visibility 0s 1s;
}

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 Parallax Animation effects

Leave a Reply

Your email address will not be published. Required fields are marked *