html - CSS Arrow Opacity Transition -
how take css arrows have (see below) , make them fade in , out when hover on each item?
my css:
#menu li { position:relative; } #menu li a:after { content: " ."; display: block; text-indent: -99em; border-bottom: 0.6em solid #1c525a; border-left: 0.6em solid transparent; border-right: 0.6em solid transparent; border-top: none; height: 0px; margin-left: -.6em; margin-right: auto; margin-top: -7px; position: absolute; left: 50%; width: 1px; }
all code available in jsfiddle.
to accomplish added following:
#menu li a:after { -webkit-transition:all 0.3s ease-in-out; transition:all 0.3s ease-in-out; } #menu li:hover a:after { border-bottom: 0.6em solid #1c525a; -webkit-transition:all 0.3s ease-in-out; transition:all 0.3s ease-in-out; }
see jsfiddle - i'm sure code can cleaned or bested, didn't find example/answer of on stack overflow yet thought add this.
Comments
Post a Comment