how to say I love you html css code

How to say I love you html css code







HTML CODE
SAVS AS index.html

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>I lOVE YOU</title>
    <link rel="stylesheet" href="p.css">
</head>
<body>
    <div class="container">
        <div class="heart">
          <div class="heart-inner"></div>
        </div>
        <div class="text">
          <h1>I</h1>
          <h1>Love</h1>
          <h1>You</h1>
        </div>
      </div>
     
   
</body>
</html>








CSS CODE


SAVE AS P.css
.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
  }
 
  .heart {
    position: relative;
    width: 100px;
    height: 90px;
  }
 
  .heart-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-45deg);
    border-radius: 50% 50% 0 0;
    background-color: red;
    animation: pulse 1s infinite alternate;
  }
 
  .text {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
  }
 
  h1 {
    font-size: 50px;
    font-weight: bold;
    margin: 0 20px;
    color: red;
    opacity: 0;
    animation: fadeIn 2s ease-in-out forwards;
  }
 
  @keyframes pulse {
    0% {
      transform: rotate(-45deg) scale(1);
      box-shadow: none;
    }
    50% {
      transform: rotate(-45deg) scale(1.2);
      box-shadow: 0 0 10px red;
    }
    100% {
      transform: rotate(-45deg) scale(1);
      box-shadow: none;
    }
  }
 
  @keyframes fadeIn {
    0% {
      opacity: 0;
      transform: translateY(50px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }
 





Comments

Popular posts from this blog

Trading Live Advance Chart Source code HTML CSS & JS

How to show live Cryptocurrency Price In your website Using HTML CSS, AND JavaScript

Learn Python 2024 by gaurav tripathi