Skip to content

[FEATURE] [FEATURE] Add Hover Reveal Text Utility #55309

Description

@aparna24bce11388

Feature Name

Hover Reveal Text Utility


Description

Introduce a reusable Hover Reveal Text Utility that smoothly reveals hidden or secondary text when a user hovers over an element. The text fades in while sliding upward, creating a clean and modern interaction. This utility is ideal for buttons, cards, portfolio items, product showcases, feature sections, and interactive UI components.


Why is this useful for EaseMotion CSS?

This utility aligns with EaseMotion CSS's animation-first philosophy by providing a lightweight, reusable, and human-readable hover effect. Developers can reveal additional information using a single CSS class without relying on JavaScript, making interfaces more engaging while keeping the implementation simple and composable.


HTML Snippet

<div class="hover-reveal-text">
  <span class="primary-text">Hover Me</span>
  <span class="secondary-text">Welcome!</span>
</div>

CSS Snippet

.hover-reveal-text {
  position: relative;
  display: inline-block;
  overflow: hidden;
}

.primary-text,
.secondary-text {
  display: block;
  transition: all 0.35s ease;
}

.secondary-text {
  position: absolute;
  left: 0;
  top: 100%;
  opacity: 0;
}

.hover-reveal-text:hover .primary-text {
  transform: translateY(-100%);
  opacity: 0;
}

.hover-reveal-text:hover .secondary-text {
  top: 0;
  opacity: 1;
}

Visual Reference (optional)

Similar to the text reveal animations commonly used on modern portfolio websites, call-to-action buttons, landing pages, and interactive navigation elements.


Checklist

  • This feature does not duplicate an existing EaseMotion CSS class
  • I understand my naming will be standardized by the maintainer
  • I will submit code inside submissions/ only — not in core/ or components/

Metadata

Metadata

Labels

GSSoC-26Official GSSoC 2026 issueanimationAnimation effects, hover interactions, motion ideas, transitionsgood first issueGood for newcomersgssoc:approvedApproved for GSSoC contributionshelp wantedExtra attention neededlevel:beginnerSuitable for first-time contributors

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions