Skip to content

Conversation

rohitmane01
Copy link
Contributor

@rohitmane01 rohitmane01 commented Oct 4, 2025

What this PR does

  • Adds a new CSS-only Tooltip demo with a delay effect.
  • Tooltip fades in after 0.5s when hovering or focusing on the target element.
  • Includes arrow styling for a polished look.

Why

  • Tooltips are commonly implemented with JavaScript, especially when a delay is required.
  • This demo showcases how the same effect can be achieved with pure CSS transitions and delay properties.
  • Enhances the collection by adding a practical, widely used UI pattern.

Features

  • Pure CSS implementation (no JS).
  • Works on both hover and focus (better accessibility).
  • Customizable delay via transition-delay.
  • Responsive and lightweight.

Notes

  • Tested in Chrome, Firefox, and Edge.
  • Mobile long-press support may vary by browser.

Demo Video

Screen.Recording.2025-10-04.204701.mp4

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.

Thank you @rohitmane01 for your contribution.

@aayush105 aayush105 merged commit 2f4e96f into you-dont-need:master Oct 5, 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