Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource


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


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.


Save Automatically?

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 lang="en">

  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <link rel="preconnect" href="">
  <link href=";500&display=swap" rel="stylesheet">

  <link href="" rel="stylesheet">
  <link rel="stylesheet" href="./style.css">

  <div class="container">
    <div class="card">
      <div class="bike">
        <div class="circle"></div>
        <img src="" alt="image">
      <div class="info">
        <h1 class="title">The <span style="color: #ea3900;">Divi</span> Bike</h1>
        <h3><strong>The One and Only</strong></br>(Get it while you can)</h3>
        <div class="purchase">
          <button>Make an Offer</button>
  <script src="" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
  <script src="./app.js"></script>



                * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;

body {
  font-family: "Open Sans", sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
.container {
  width: 70%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.75s ease-out;
.card {
  transform-style: preserve-3d;
  transition: all 0.75s;
  max-width: 700px;
  border-radius: 30px;
  padding: 2vh 5%;
  box-shadow: 0 20px 20px rgba(0, 0, 0, 0.2), 0px 0px 50px rgba(0, 0, 0, 0.2);

.bike {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 5vh;
.bike img {
  width: 80%;
  z-index: 2;
  transition: all 0.75s ease-out;
.circle {
  width: 150px;
  width: clamp(100px, 10vw, 150px);
  height: 150px;
  height: clamp(100px, 10vw, 150px);
  background: linear-gradient(to right, #443763, #ea3900);
  position: absolute;
  border-radius: 50%;
  z-index: 1;

.info {
  text-align: center;

.info h1 {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.05em;
  color: #443763;
  font-size: 45px;
  font-size: clamp(45px, 8vw, 75px);
  transition: all 0.75s ease-out;
  margin-bottom: 5vh;
.info h3 {
  font-size: 24px;
  font-size: clamp(18px, 2vw, 24px);
  margin-bottom: 7vh;
  color: #585858;
  font-weight: lighter;
  transition: all 0.75s ease-out;
.purchase {
  margin-bottom: 5vh;
  transition: all 0.75s ease-out;
.purchase button {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.1em;
  width: 100%;
  max-width: 400px;
  font-size: clamp(18px, 3vw, 25px);
  padding: 0.8em 3em;
  background: #443763;
  border: none;
  color: white;
  cursor: pointer;
  border-radius: 30px;
  font-weight: bolder;
.card.has-transform {
  transition: all 100ms linear;
.title.has-transform {
  transform: translateZ(150px) !important;
.bike img.has-transform {
  transform: translateZ(200px) rotateZ(10deg) !important;
.info h3.has-transform {
  transform: translateZ(125px) !important;
.purchase.has-transform {
  transform: translateZ(150px) rotateX(380deg) !important;



                <!-- Credits -->
<!-- Inspired by Dev Ed & -->

jQuery(document).ready(function ($) {
  var $card = $(".card");
  var $container = $(".container");
  var $title = $(".title");
  var $bike = $(".bike img");
  var $purchase = $(".purchase");
  var $description = $(".info h3");

  //Moving Animation Event
  $container.on("mousemove", function (e) {
    let xAxis = (window.innerWidth / 2 - e.clientX) / 25;
    let yAxis = (window.innerHeight / 2 - e.clientY) / 25;
    $card.css("transform", `rotateY(${xAxis}deg) rotateX(${yAxis}deg)`);

  //Animate on Hover
  $container.hover(function () {

  //Pop Back on mouseleave
  $container.on("mouseleave", function () {
    $card.css("transform", `rotateY(0deg) rotateX(0deg)`);