ul.second li { list-style-type:none; float:left; padding-left:20px;}
ul.second li a { text-decoration:none; padding:5px; color:#f33; position:relative;}
ul.second li a:before { border-left:1px solid #000; border-right:1px solid #000; transform:scale(1,0);}
ul.second li a:after { border-top:1px solid #000; border-bottom:1px solid #000; transform:scale(0,1);}
ul.second li a:before, ul.second li a:after { content:""; position:absolute; top:0; left:0; bottom:0; right:0; transition:opacity 0.35s ease, transform 0.35s ease;}
ul.second li a:hover:before, ul.second li a:hover:after { transition:0.35s; transform:scale(1);}
ul.final li { list-style-type:none; float:left; padding-left:30px;}
ul.final li a { text-decoration:none; position:relative; padding:5px;}
ul.final li a:before { border-left:1px solid #000; border-right:1px solid #000; transform:scale(1,0);}
ul.final li a:after { border-top:1px solid #000; border-bottom:1px solid #000; transform:scale(0,1);}
ul.final li a:before, ul.final li a:after { content:""; position:absolute; top:0; right:0; bottom:0; left:0; transition:opacity 0.35s ease, transform 0.35s ease;}
ul.final li a:hover:before, ul.final li a:hover:after { opacity:1; transform:scale(1);}