Quantcast
Channel: phpBB.com
Viewing all articles
Browse latest Browse all 2399

[3.3.x] Styles Support & Discussion • Re: Help needed with dropdown animation

$
0
0
@Gumboots: I agree, but perhaps this should be changed due to the more complex updates required in the core of phpbb.

@Mannix_: Thank you very much, the code works very well and put me on the right track. I expanded it a little so that the drop-down menus roll down or up depending on which direction they are displayed. I also adjusted it so that it works in mobile view with the posting buttons.

In case anyone is interested, here is the adjusted code:

Code:

.dropdown {opacity: 0;transform: scaleY(0);transform-origin: top;transition-property: opacity, transform, overlay, display;transition-duration: 0.4s;transition-behavior: allow-discrete;}.dropdown-up .dropdown {transform-origin: bottom;}.dropdown-toggle + .dropdown {opacity: 1;transform: scaleY(1);}@starting-style {  .dropdown-toggle + .dropdown {    opacity: 0;    transform: scaleY(0);  }}

Statistics: Posted by Octopus — Tue Apr 29, 2025 11:20 am



Viewing all articles
Browse latest Browse all 2399

Trending Articles