Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Auto Save

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Lambdatest Flow Card</title>
    <link rel="stylesheet" href="index.css" />
</head>
<body>
    <div class="container">
        <div class="card">
            <img src="https://www.lambdatest.com/resources/images/hyperexecute/hyperlogo.svg" alt="H Logo" class="logo" style="filter: brightness(0%);"/>
            <p>E2E Test Orchestration Cloud</p>
            <div class="content">
                <img src="https://www.lambdatest.com/resources/images/icons/banner1.webp" alt="Character with Cart" class="character" />
                <div class="text-content">
                    <h4>HyperExecute platform comes with feature-packed test runners for every major OS, including in-built support for all major programming languages & frameworks like Java, Node.js, Python, PHP, GO, C# & more.

                    </h2>
                    <p>5 min</p>
                </div>
            </div>
        </div>

        <div class="card" style="background:rgb(255, 255, 255)">
            <img src="https://www.lambdatest.com/resources/images/testLogo.svg" alt="GoDaddy Logo" class="logo testintelligence" />
            <p>Test Intelligence
            </p>
            <div class="content">
                <img src="https://www.lambdatest.com/resources/images/testintelligence.webp" alt="Character with Cart" class="character" />
                <div class="text-content">
                    <h4>Anticipate and mitigate future issues before they take root with AI-
                        powered test intelligence insights.</h2>
                    <p>5 min</p>
                </div>
            </div>
        </div>
    </div>
    <script>
   document.addEventListener("DOMContentLoaded", () => {
    const cards = document.querySelectorAll(".card");

    cards.forEach(card => {
        card.addEventListener("mousemove", (e) => {
            const rect = card.getBoundingClientRect();
            const xAxis = (rect.width / 2 - (e.clientX - rect.left)) / 10;
            const yAxis = (rect.height / 2 - (e.clientY - rect.top)) / 10;
            card.style.transform = `rotateY(${xAxis}deg) rotateX(${yAxis}deg)`;
        });

        card.addEventListener("mouseleave", (e) => {
            card.style.transition = "all 2s cubic-bezier(.18,1.4,.53,1)";
            card.style.transform = `rotateY(0deg) rotateX(0deg)`;
        });
    });
});

    </script>
</body>
</html>

              
            
!

CSS

              
                body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: #130707;
  margin: 0;
}

.container {
  perspective: 350px;
  perspective-origin: center;
  transform-style: preserve-3d;
  border: none;
  outline: none;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.card {
  background-color: #49e7e7;
  width: 200px;
  height: 100px;
  border-radius: 10px;
  padding: 20px;
  margin: 10px;
  text-align: center;
  font-family: Arial, sans-serif;
  overflow: hidden;
  cursor: pointer;
  filter: inset 0 4px 20px 6px rgba(0, 0, 0, 0.2)
    drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
  transform: translateZ(0);
  transition: all 3s cubic-bezier(0.075, 0.82, 0.165, 1);
  transform-style: preserve-3d;
  border: 2px solid #ffffff;
  /* border: none; */
  box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.11111);
}

.card:hover {
  height: fit-content;
  transition-timing-function: ease-in-out;
  transition-duration: 1s;
  outline: 0;
}

.card:hover .testintelligence {
  width: 30%;
  height: 40%;
  object-fit: contain;
  border-radius: 5;
}

@keyframes pop {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.card .logo {
  max-width: 100%;
  width: 80%;
  margin: auto;
  transition: all 0.3s cubic-bezier(0.075, 0.82, 0.165, 1);
}

.testintelligence {
  width: 50%;
  height: 40%;
  object-fit: contain;
  border-radius: 5;
}

.card .content {
  top: 100%;
  left: 0;
  width: 100%;
  transition: height 5s cubic-bezier(0.18, 1.4, 0.53, 1);
  display: none;
  flex-direction: column;
  align-items: center;
  transform-origin: bottom left;
}

.card:hover .content {
  top: 10%;
  display: flex;
}

.card:hover .logo {
  /* width: 50%; */
  transform: scale(0.8);
}

/* .card:hover {
    height: 350px;
} */

.card:hover p {
  opacity: 0;
  display: none;
}

.character {
  width: 90%;
  display: block;
}

.text-content {
  color: rgba(253, 253, 253, 0.9);
  bottom: 0;
  filter: inset 0 4px 20px 6px rgb(0, 0, 0);
  width: 100%;
}

.text-content h4,
.text-content p {
  font-size: 14px;
  margin: 5px 0;
  color: rgb(0, 0, 0);
}

.card p {
  color: rgba(2, 0, 0, 0.9);
  font-size: 1rem;
  font-weight: 600;
  margin: 10px;
  padding: 0;
  transition: all 0.3s cubic-bezier(0.075, 0.82, 0.165, 1);
}

              
            
!

JS

              
                
              
            
!
999px

Console