Home Web Front-end JS Tutorial Create a Stunning Bend & Reveal Hover Effect with Illusionistic Background Using HTML & CSS

Create a Stunning Bend & Reveal Hover Effect with Illusionistic Background Using HTML & CSS

Dec 03, 2024 pm 10:36 PM

Create a Stunning Bend & Reveal Hover Effect with Illusionistic Background Using HTML & CSS

Follow us on instagram: https://www.instagram.com/webstreet_code/

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Bend & Reveal Effect</title>
  <style>
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }
    body {
      display: flex;
      justify-content: center;
      align-items: center;
      height: 100vh;
      background: linear-gradient(135deg, #1e1e1e, #3c3c3c);
      overflow: hidden;
      font-family: Arial, sans-serif;
    }
    .container {
      position: relative;
      width: 300px;
      height: 400px;
      perspective: 1200px;
      overflow: visible;
    }

    /* Illusionistic glowing grid background */
    .illusion-bg {
      position: absolute;
      top: -20px;
      left: -20px;
      width: calc(100%   40px);
      height: calc(100%   40px);
      background: repeating-linear-gradient(45deg,
       rgba(255, 255, 255, 0.1) 0 5px, transparent 5px 10px);
      border-radius: 15px;
      box-shadow: inset 0 0 50px rgba(255, 255, 255, 0.05),
       0 0 30px rgba(0, 255, 255, 0.5);
      z-index: -1;
      filter: blur(5px);
    }

    .image-wrapper {
      position: relative;
      width: 100%;
      height: 100%;
      transform-origin: center bottom;
      transition: transform 0.8s ease, box-shadow 0.8s ease, filter 0.6s ease;
      border-radius: 15px;
      overflow: hidden;
      z-index: 1;
    }
    .image-wrapper img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      border-radius: 15px;
      filter: brightness(80%);
      transition: filter 0.8s ease;
    }

    .reveal-png {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: url('./removebg.png') no-repeat center;
      background-size: cover;
      opacity: 0;
      transform: translateY(50px) scale(0.9);
      transition: opacity 0.8s ease, transform 0.8s ease, filter 0.6s ease;
      filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.9));
    }

    /* Hover Effects */
    .container:hover .image-wrapper {
      transform: rotateX(-70deg) scale(1.05);
      box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
      filter: hue-rotate(30deg);
    }

    .container:hover .image-wrapper img {
      filter: brightness(100%) saturate(1.2);
    }

    .container:hover .reveal-png {
      z-index: 1;
      opacity: 1;
      transform: translateY(0) scale(1.06);
      filter: drop-shadow(0 0 20px rgba(0, 255, 255, 0.8));
    }

    .container:hover .illusion-bg {
      animation: pulse 2s infinite alternate ease-in-out;
    }

    @keyframes pulse {
      0% {
        transform: scale(1);
        opacity: 0.8;
      }
      100% {
        transform: scale(1.05);
        opacity: 1;
      }
    }
  </style>
</head>
<body>

<div>




          
Copy after login

The above is the detailed content of Create a Stunning Bend & Reveal Hover Effect with Illusionistic Background Using HTML & CSS. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot Article

Hot Article

Hot Article Tags

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Replace String Characters in JavaScript Replace String Characters in JavaScript Mar 11, 2025 am 12:07 AM

Replace String Characters in JavaScript

jQuery Check if Date is Valid jQuery Check if Date is Valid Mar 01, 2025 am 08:51 AM

jQuery Check if Date is Valid

jQuery get element padding/margin jQuery get element padding/margin Mar 01, 2025 am 08:53 AM

jQuery get element padding/margin

Top 5 Date Manipulation JS Plugins Top 5 Date Manipulation JS Plugins Feb 28, 2025 am 12:34 AM

Top 5 Date Manipulation JS Plugins

10 jQuery Accordions Tabs 10 jQuery Accordions Tabs Mar 01, 2025 am 01:34 AM

10 jQuery Accordions Tabs

10 Worth Checking Out jQuery Plugins 10 Worth Checking Out jQuery Plugins Mar 01, 2025 am 01:29 AM

10 Worth Checking Out jQuery Plugins

jquery add scrollbar to div jquery add scrollbar to div Mar 01, 2025 am 01:30 AM

jquery add scrollbar to div

HTTP Debugging with Node and http-console HTTP Debugging with Node and http-console Mar 01, 2025 am 01:37 AM

HTTP Debugging with Node and http-console

See all articles