Git Product home page Git Product logo
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <style>
    body {
      background-color: black;
    }

    .container {
      position: relative;
      width: 100%;
      display: flex;
      justify-content: center;
      align-items: center;
    }

    .container .square {
      position: absolute;
      width: 200px;
      height: 200px;
    }

    .container .square:nth-child(2) {
      transform: translate(-25%, -25%) rotateX(180deg);
      filter: hue-rotate(60deg);
    }

    .container .square:nth-child(3) {
      transform: translate(25%, 25%) rotate(180deg);
      filter: hue-rotate(180deg);
    }

    .container .square::before {
      content: '';
      position: absolute;
      width: 20px;
      height: 20px;
      background: #0f0;
      box-shadow: 0 0 0 8px #0f03, 0 0 0 15px #0f01;
      animation: animateSquare 4s linear infinite;
    }

    @keyframes animateSquare {
      0% {
        transform: translate(2px, 2px);
      }

      25% {
        transform: translate(178px, 2px);
      }

      50% {
        transform: translate(178px, 178px);
      }

      75% {
        transform: translate(2px, 178px);
      }

      100% {
        transform: translate(2px, 2px);
      }
    }

    .container .square span {
      position: absolute;
      inset: 10px;
      overflow: hidden;
      transform: rotate(calc(90deg * var(--i)));
    }

    .container .square span::before {
      content: '';
      position: absolute;
      width: 100%;
      height: 4px;
      background: #0f0;
      transform: translateX(-100%);
      animation: animate 4s linear infinite;
      animation-delay: calc(1s * var(--i));
    }

    @keyframes animate {
      0% {
        transform: translateX(-100%);
      }

      50%, 100% {
        transform: translateX(100%);
      }
    }
  </style>
</head>
<body>
  <div class="container">
    <div class="square">
      <span style="--i:0;"></span>
      <span style="--i:1;"></span>
      <span style="--i:2;"></span>
      <span style="--i:3;"></span>
    </div>
    <div class="square">
      <span style="--i:0;"></span>
      <span style="--i:1;"></span>
      <span style="---i:2;"></span>
      <span style="--i:3;"></span>
    </div>
    <div class="square">
      <span style="--i:0;"></span>
      <span style="--i:1;"></span>
      <span style="--i:2;"></span>
      <span style="--i:3;"></span>
    </div>
  </div>
</body>
</html>

neeraj2234444's Projects

neeraj2234444 doesnโ€™t have any public repositories yet.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.