Skip to content

Conversation

@vaishnavi-parodkar
Copy link
Contributor

Description:

Reflection Text Effect created purely with HTML and CSS, without any JavaScript. The design uses the ::after pseudo-element and CSS transformations to generate a realistic mirror reflection beneath the text.

Features:

  • Realistic mirrored reflection using ::after

  • Gradient fade for natural reflection

  • Works with multiple words or sentences (data-text attribute support)

  • Fully responsive and centered layout

  • Minimal and clean CSS

Implementation Details:

  • Utilized transform: scaleY(-1) for reflection.

  • Applied linear-gradient and opacity for fading.

  • Used background-clip: text for a smooth mirror transition.

Screenshot:

image

@aayush105 Kindly review and merge this PR under Hacktoberfest issue #945

Copy link
Member

@aayush105 aayush105 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!!

@aayush105 aayush105 merged commit 6c34624 into you-dont-need:master Oct 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants