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

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -