Hover Effect Card | Html And Css with Free Source Code On Telegram Channel And Download With Free Source Code

Follow Us On Telegram   Telegram link

HTML
      <!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Hover Effect | Codeatnow</title>
    <link rel="stylesheet" href="index.css">
</head>
<body>
    <img src="https://assets.codepen.io/1480814/goku-_1.png" alt="Goku">
    <img src="https://assets.codepen.io/1480814/veg-.png" alt="Vegeta">

</body>
</html>
      
img { --s: min(50vw,360px); /* control the size */ width: var(--s); aspect-ratio: 1; object-fit: cover; object-position: top; padding: calc(var(--s)/4) calc(var(--s)/8) 0; box-sizing: border-box; background: conic-gradient(from 135deg at 50% 15%,#e0dee1,#28a6b5 25%,#0000 0); clip-path: polygon(-50% 0,150% 0,50% 100%); transition: .5s; cursor: pointer; } img:hover { padding: 0; } body { margin: 0; min-height: 100vh; display: grid; place-content: center; grid-template-columns: auto auto; background: #11131e; }

Post a Comment

0Comments
Post a Comment (0)