r/ImaginaryNetwork • u/NTRX • Feb 17 '15
[Moved To Vote] [Proposal] Make the current drop down menu animated. (Thanks to /u/Karma_4_Free)
/u/Karma_4_Free made this post showing the very cool creation of animated drop down menus. I currently like it but I know some may not. I recommend to check out his/her post about it to view the code. The code is currently in place in the Technology section(with the expection of /r/ImaginaryTechnology.) Again all of the this is brought to you by /u/Karma_4_Free.
/u/Karma_4_Free's post:
Check out any sub in the technology tab! I have changed the drop downs so that they slide in, instead of popping in.
I don't know if you all like it, but if you would like to do the same, add the following to your stylesheet
.side .md blockquote ul ul {
max-height: 0;
overflow: hidden;
-webkit-transition: max-height 0.2s;
transition: max-height 0.2s;
}
.side .md blockquote li:hover ul {
max-height: 500px;
-webkit-transition: max-height 0.7s;
transition: max-height 0.7s;
}
and remove display: none; from under .titlebox .md blockquote > ul:last-of-type ul.
If you would like to add transitions to the links in the drop downs, add
.side .md blockquote ul ul a {
-webkit-transition: -webkit-transform 0.1s;
transition: transform 0.1s;
}
.side .md blockquote ul ul li:hover a {
-webkit-transform: scale(1.1);
transition: scale(1.1);
}
and remove font-size: 13px; from .titlebox .md blockquote>ul:last-of-type a:hover
2
u/kjhatch Feb 17 '15
My only issue with it is that it's slow, especially on fandoms and technology. When I'm looking for a sub to post to, I slide across the lists pretty quick. The animation as set in the example hurts functionality to me. It might be fine if the delay were cut in half.
Has it been tested on a wide variety of browsers and workstations/mobiles? It works about the same on CHrome and FF, same speed issues. Safari seems ok, but mine is displaying it choppy. Like the fandoms list does not display smoothly; it stutters. IE doesn't have support, but the regular instant display works fine. Opera does the animation fastest/smoothest, but the menus in general are mucked up in it anyhow. I've not looked at it on phones yet or done any older version testing.
2
u/sacredserenity Feb 17 '15
Looks great. Let's make the change for all the subreddits.
4
u/SaltySolomon Feb 17 '15
Do we really have to vote on it? It is simply a great idea!
4
u/[deleted] Feb 17 '15
1000 times yes
4
u/Respectfullyyours Feb 17 '15
That looks really sleek! :D
3
u/Lol33ta Lead Mod Feb 17 '15
SO VERY YES!
2
u/[deleted] Feb 17 '15 edited Feb 17 '15
Thanks for bringing some attention to my post, NTRX.
Edit: Oh and I'm a "he."
2
u/ecclectic Feb 17 '15
It's not working on Chrome, for me at least.
2
u/misnamed Architecture Feb 18 '15
Word!