Note that there are some explanatory texts on larger screens.

plurals
  1. POAnimate Circular thumbnail size grow on mouse over using jquery
    primarykey
    data
    text
    <p>I have generated circular thumbnail of images using Css3 border-radius. I want mouseover animation where circle thumbnails dimension grow on mouse hover and return to original dimension on mouse out.And dimension increases from center of circle with overlapping left and right thumbnail of that circle.</p> <p>css:</p> <pre><code> #baar{position:fixed;width:100%;height:110px;background:black;top:130px;} ul#block{ display:inline-block; list-style:none; position:relative;left:0px;} ul#block li{float:left; list-style:none;width:110px; height:110px;overflow:visible; position:relative; text-align:center;padding-left:5px} ul#block li img {background:grey;width:100px; height:100px;border :5px solid red;border-radius:55px 55px 55px 55px;} </code></pre> <p>html:</p> <pre><code>&lt;body&gt; &lt;div id="baar"&gt; &lt;ul id="block"&gt; &lt;li&gt;&lt;img&gt;&lt;/li&gt; &lt;li&gt;&lt;img&gt;&lt;/li&gt; &lt;li&gt;&lt;img&gt;&lt;/li&gt; &lt;li&gt;&lt;img&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; &lt;/body&gt; </code></pre> <p>and this the jquery I have which gives me animation of dimension grow but circle doesn't remains on initial center . width increase toward right and height increase toward bottom.</p> <pre><code>$("ul#block li img").mouseover(function() { $(this).animate({'width':130, 'height':130}, {duration:100}); }).mouseout(function(){ $(this).animate({'width':110, 'height':110}, {duration:100}); }); </code></pre> <p>jsfiddle : <a href="http://jsfiddle.net/k9nQU/15/" rel="nofollow">http://jsfiddle.net/k9nQU/15/</a></p> <p>So help me write proper jquery for animation where circle grow up keeping center as it is and overlap aside thumbnail during animation period.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload