Skip to content

Overlay cards scale beyond parent container on hover #266

@Raj2raaz

Description

@Raj2raaz

Current Behavior

The overlay cards (top-left and bottom-right) scale up on hover using scale-105. However, when hovered, they overflow or extend beyond the bounds of the parent image container, especially on smaller screens. This creates layout issues and visual inconsistency.

Desired Behavior

The overlay cards should scale smoothly on hover without exceeding the boundaries of the parent container. The hover animation should remain contained within the image card by using proper transform-origin and ensuring the parent container handles overflow correctly.

Screenshots / Mockups

20250703-1727-28.3837811.mp4

Environment

  • Operating System: Windows
  • Browser: Chrome

Checklist

  • I have read and followed the project's code of conduct.
  • I have searched for similar issues before creating this one.
  • I have provided all the necessary information to understand and reproduce the issue.
  • I am willing to contribute to the resolution of this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions