javascript - Achieving the image expand / contract effect -


i want make same effect http://www.userreport.com/ has twitter bar in side, see expand width of image when .hover on, when try to

width:47px 

it shrinks image rather cutting it, (i shrinking div holding image), , use js or manipulate css achieve effect?

something should work:

div.twitter {     width: 100px;    left: 100%;    margin-left: -50px;    transition: margin-left 2s; }  div.twitter:hover {     margin-left: -100px; } 

don't forget browser prefixes on transition


Comments

Popular posts from this blog

routing - AngularJS State management ->load multiple states in one page -

python - GRASS parser() error -

post - imageshack API cURL -