applied same code for ul and h3. included a fadeout effect