10eIOSweb 0 Posted March 22, 2012 Report Share Posted March 22, 2012 What i want to know is how i make the thumbnail bigger while clicking on it simillar to what i have done with the fisheye menu on the top. I cannot get those images to work with the dock JS, any suggestions in how to do it with CSS? This is my page: http://www.wedub4u.com/ Let me know your suggestions. Quote Link to post Share on other sites
Genert 0 Posted March 22, 2012 Report Share Posted March 22, 2012 (edited) CSS3 has great way to do it. It's called transition. Here is a example how it would look: img { transition:width 1s; -moz-transition:width 1s; -webkit-transition:width 1s; -o-transition:width 1s;} img:hover { width: 100%;} Just remember! transition: [goal] [time]; Goal can be anything in CSS,background-color,color,height,float....etc. Time is in seconds! And the goal can't be in same CSS element,it must be in :after,:hover..etc. Edited March 22, 2012 by Genert Quote Link to post Share on other sites
Genert 0 Posted March 22, 2012 Report Share Posted March 22, 2012 (edited) Oh yeah,forgot to add that you can add multiple values. img { transition:width 1s,height 1s; -moz-transition:width 1s,height 1s; -webkit-transition:width 1s,height 1s; -o-transition:width 1s,height 1s;}img:hover { width: 100%; height: 100%;} Edited March 22, 2012 by Genert Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.