Skip to content

Animate DocsPopover #2210

Closed
Closed

Description

@david-crespo

I don't want to block #2194 on this because it's already great without an animation, but I think an animation would be nice and it would match how dropdown menu works. Apparently we do it in CSS:

@keyframes slide-down {
0% {
opacity: 0;
transform: translateY(10px);
}
100% {
opacity: 1;
transform: translateY(0);
}
}
.DropdownMenuContent {
animation: slide-down 0.2s ease;
}
@media (prefers-reduced-motion) {
.DropdownMenuContent {
animation-name: none;
}
}

Activity

  1. benjaminleonard commented on Apr 30, 2024

    @benjaminleonard
    Contributor

    We can reuse the dropdown animation if it's an easy addition. I was planning to do a bit of an animation audit and overhaul in the coming weeks so if it hasn't been done by then I'll take a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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