From a016d06b41f3d2784952838cd47f3c621ff475bf Mon Sep 17 00:00:00 2001 From: Joris Guyonvarch Date: Thu, 12 Mar 2015 23:42:51 +0100 Subject: Adding an opacity transition for the sub-menu to appear --- menu.css | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'menu.css') diff --git a/menu.css b/menu.css index 972629d..62fd30b 100644 --- a/menu.css +++ b/menu.css @@ -52,11 +52,13 @@ nav > ul > li:hover > a { } nav ul ul a { - background-color: #EEEEEE; + transition: opacity 0.2s ease; visibility: hidden; opacity: 0; height: 0px; - line-height: 21px; + line-height: 0px; + + background-color: #EEEEEE; padding: 0 20px; color: black; } -- cgit v1.2.3