html - CSS text transition reverting to font size after finished -


i'm having issues transitioning text properly. have list 5 hyperlink texts:

<div id="listcontainer"> <ul id="wordlist">     <li class="wordlistitem"><a class="wordlistlink" href="somewhere1.jsp">word1</a></li>     <li class="wordlistitem"><a class="wordlistlink" href="somewhere2.jsp">word2</a></li>     <li class="wordlistitem"><a class="wordlistlink" href="somewhere3.jsp">word3</a></li>     <li class="wordlistitem"><a class="wordlistlink" href="somewhere4.jsp">word4</a></li>     <li class="wordlistitem"><a class="wordlistlink" href="somewhere5.jsp">word5</a></li> </ul> </div> 

i use #wordlist remove bullets, #wordlistitem display words inline, , #wordlistlink text transitions , font properties:

.wordlistlink{     line-height: 50px;     text-decoration: none;     -webkit-transition: 0.3s ease-in-out;     -moz-transition: 0.3s ease-in-out;     -ms-transition: 0.3s ease-in-out;     -o-transition: 0.3s ease-in-out;     transition: 0.3s ease-in-out;     color: white;     font-size: 40px;     margin-right: 30px; }  .wordlistlink:link {     color: white; }  .wordlistlink:visited {     color: white; }  .wordlistlink:hover {     color: #838383;     transform: scale(1.1);     /*i've tried font-size: 45px transition moves rest of words over*/ } 

and list container move list right side:

#listcontainer {     position: absolute;     bottom: 0;     right: 0; } 

what i'm trying increase font size little on hover. transform: scale(1.1) text increases once finishes increasing, snaps normal, while mouse still hovered. doesn't remain @ 1.1 scale reason. problem using font-size: 45px that, first, increasing moves other words on make room, , second, increases font leftwards , upwards instead of equally on sides. have fix this?

the list items not large enough accommodate text when hover.

you should,

  1. increase width of list items,
  2. reduce font-size change (say 1.35em 1.4em),
  3. add right margin.

let me know, if helps!


Comments

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

[C++][SFML 2.2] Strange Performance Issues - Moving Mouse Lowers CPU Usage -

ios - Possible to get UIButton sizeThatFits to work? -