Hey there, You are most welcome to this article. I hope you will enjoy this article. If you like this article then please share this article with your friends and colleagues. If you have any questions or suggestions regarding this article then please comment down below.

๐Ÿ“™Table Of Content

Project Folder Structure:

  • Create a file called  index.html  to serve as the main file.

  • Create a file called  style.css  for the CSS code.
  • Create a file called  script.js  for the JavaScript code.

HTML CODE (index.html)

  
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Card 3d aniamtion | Codewithshobhit</title>
    <link rel="stylesheet" href="style.css" />
  </head>
  <body>
    <a href="text.html" alt="Mythrill" target="_blank">
      <div class="card">
        <div class="wrapper">
          <img src="final.png" class="cover-image" width="1515px"/>
        </div>
        <img src="./44.png" class="title" />
        <img src="./22.png" class="character" />
      </div>
    </a>
    <div>
      <div class="wave"></div>
      <div class="wave"></div>
      <div class="wave"></div>
    </div>
  </body>
</html>

  
  

HTML CODE (text.html)

  

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>CSS animation | untoldcoding</title>
    <link rel="stylesheet" href="text.css" />
  </head>
  <body>
    <div class="untoldcoding">
      <img src="./ram.jpg" alt="" />
      <h1>
        <span>J</span>
        <span>a</span>
        <span>i&#160;&#160;</span>

        <span>&#160;&#160;S</span>
        <span>h</span>
        <span>r</span>
        <span>i</span>
        <span>&#160;</span>

        <span>&#160;&#160;R</span>
        <span>a</span>
        <span>m</span>
      </h1>
    </div>
  </body>
</html>

 
  

CSS CODE (style.css)


:root {
  --card-height: 800px;
  --card-width: calc(var(--card-height) / 1.9);
}
* {
  box-sizing: border-box;
}
body {
  margin: auto;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  overflow: auto;
  background: linear-gradient(
    315deg,
    rgba(101, 0, 94, 1) 3%,
    rgb(28, 65, 102) 38%,
    rgb(17, 79, 75) 68%,
    rgb(18, 72, 8) 98%
  );
  animation: gradient 15s ease infinite;
  background-size: 400% 400%;
  background-attachment: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
}
@keyframes gradient {
  0% {
    background-position: 0% 0%;
  }
  50% {
    background-position: 100% 100%;
  }
  100% {
    background-position: 0% 0%;
  }
}

.card {
  width: var(--card-width);
  height: var(--card-height);
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding: 0 36px;
  perspective: 2500px;
  margin: 0 50px;
  box-shadow: none;
}

.cover-image {
  object-fit: cover;
}

.wrapper {
  transition: all 5.5s;
  position: absolute;
  z-index: -1;
}

.card:hover .wrapper {
  box-shadow: 2px 35px 32px 38px rgba(0, 0, 0, 0.75);
  -webkit-box-shadow: 2px 35px 32px -8px rgb(30, 29, 28);
  z-index: 5;
  filter: blur(2px);
  filter: saturate(2);
  box-shadow: none;
}

.title {
  width: 50%;
  opacity: 0.9;
  transition: transform 0.5s;
  position: relative;
  top: 10px;
}
.card:hover .title {
  transform: translate3d(0%, -430px, 1390px);
  opacity: 1;
  filter: brightness(1.75);
  position: relative;
  bottom: -5px;
  left: 180px;
  z-index: -3;
}

.character {
  width: 60%;
  opacity: 0;
  transition: all 0.5s;
  position: absolute;
  z-index: -1;
}

.card:hover .character {
  opacity: 1;
  transform: translate3d(0%, -50%, 580px);
   position: relative;
   bottom: 400px;
   right: 160px;
  animation: untoldcoding 0.5s infinite ease-in-out;
}
@keyframes untoldcoding {
  10% {
    filter: drop-shadow(0 0 0.75rem rgb(246, 127, 0));
  }

  100% {
    filter: drop-shadow(0 0 0.75rem rgb(185, 185, 185));
  }
}


CSS CODE (text.css)


@import url("https://fonts.googleapis.com/css?family=Luckiest+Guy");

body {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background-color: black;
  background-image: -webkit-linear-gradient(90deg, black 0%, steelblue 100%);
  background-attachment: fixed;
  background-size: 100% 100%;
  overflow: hidden;
  font-family: "Luckiest Guy", cursive;
  -webkit-font-smoothing: antialiased;
}
img {
  width: 100%;
  height: 100%;
  opacity: 0.2;
  margin: 0;
  padding: 0;
  position: relative;
  bottom: 50px;
  right: 10px;
}

::selection {
  background: transparent;
}

body:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 0;
  height: 0;
  margin: auto;
  border-radius: 100%;
  background: transparent;
  display: block;
  box-shadow: 0 0 150px 100px rgba(255, 255, 255, 0.6),
    200px 0 200px 150px rgba(255, 255, 255, 0.6),
    -250px 0 300px 150px rgba(255, 255, 255, 0.6),
    550px 0 300px 200px rgba(255, 255, 255, 0.6),
    -550px 0 300px 200px rgba(255, 255, 255, 0.6);
}

h1 {
  cursor: default;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100px;
  margin: auto;
  display: block;
  text-align: center;
}

h1 span {
  position: relative;
  top: 20px;
  display: inline-block;
  -webkit-animation: bounce 0.3s ease infinite alternate;
  font-size: 80px;
  color: #fff;
  text-shadow: 0 1px 0 #ccc, 0 2px 0 #ccc, 0 3px 0 #ccc, 0 4px 0 #ccc,
    0 5px 0 #ccc, 0 6px 0 transparent, 0 7px 0 transparent, 0 8px 0 transparent,
    0 9px 0 transparent, 0 10px 10px rgba(0, 0, 0, 0.4);
}

h1 span:nth-child(2) {
  -webkit-animation-delay: 0.1s;
}

h1 span:nth-child(3) {
  -webkit-animation-delay: 0.2s;
}

h1 span:nth-child(4) {
  -webkit-animation-delay: 0.3s;
}

h1 span:nth-child(5) {
  -webkit-animation-delay: 0.4s;
}

h1 span:nth-child(6) {
  -webkit-animation-delay: 0.5s;
}

h1 span:nth-child(7) {
  -webkit-animation-delay: 0.6s;
}

h1 span:nth-child(8) {
  -webkit-animation-delay: 0.2s;
}

h1 span:nth-child(9) {
  -webkit-animation-delay: 0.3s;
}

h1 span:nth-child(10) {
  -webkit-animation-delay: 0.4s;
}

h1 span:nth-child(11) {
  -webkit-animation-delay: 0.5s;
}

h1 span:nth-child(12) {
  -webkit-animation-delay: 0.6s;
}

h1 span:nth-child(13) {
  -webkit-animation-delay: 0.7s;
}

@-webkit-keyframes bounce {
  100% {
    top: -20px;
    text-shadow: 0 1px 0 #ccc, 0 2px 0 #ccc, 0 3px 0 #ccc, 0 4px 0 #ccc,
      0 5px 0 #ccc, 0 6px 0 #ccc, 0 7px 0 #ccc, 0 8px 0 #ccc, 0 9px 0 #ccc,
      0 50px 25px rgba(0, 0, 0, 0.2);
  }
}


How to run this Html Css and Js Project in Our Browser?

first, you need a code editor either you can use VS code studio or notepad and then copy the html,css, and javascript code, create separate or different files for coding then combine them, after creating file just click .html file or run from VS Code studio and you can project preview.

Which Code Editor do you use to create those projects?

I am using VS Code Studio.

is this project responsive or not?

Yes! this project is a responsive project.

If you enjoyed reading this post and have found it useful for you, then please give share it with your friends, and follow me to get updates on my upcoming posts. You can connect with me on  Instagram

if you have any confusion Comment below or you can contact us by filling out our Contact Us form from the home section. ๐Ÿคž๐ŸŽ‰