.topmenu > li > a { color: #404040; } .submenu { background: #273037; position: absolute; left: 0; top: 100%; z-index: 5; width: 180px; opacity: 0; transform: scaleY(0); transform-origin :0 0; transition: .5s ease-in-out; } .topmenu > li:hover .submenu { opacity: 1; transform: scaleY(1); }