Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to create a wiggle effect on a image when hovering
    primarykey
    data
    text
    <p>I'm trying to create a wiggle effect on a few images on my homepage!</p> <p>I want to accomplish this when I hoved the mouse over the image. I have the following html: </p> <blockquote> <p> </p> <pre><code>&lt;div id="Background"&gt; &lt;br /&gt;&lt;br /&gt; &lt;div class="Menu"&gt; &lt;div&gt; &lt;button class ="ButtonClass"&gt;Activities&lt;/button&gt; &lt;button class ="ButtonClass"&gt;Offers&lt;/button&gt; &lt;button class ="ButtonClass"&gt;Skills&lt;/button&gt; &lt;/div&gt; &lt;/div&gt; &lt;div id="Content"&gt; &lt;h1&gt;Activities&lt;/h1&gt; &lt;div id ="newsSection"&gt; &lt;h4&gt; &lt;span class="subhead"&gt;Satan Kommer ej&lt;/span&gt;&lt;/h4&gt; &lt;p&gt; !&lt;/p&gt; &lt;h4&gt; &lt;span class="subhead"&gt;Börjar den 14 December!&lt;/span&gt;&lt;/h4&gt; &lt;p&gt; &lt;/p&gt; &lt;h4&gt; &lt;span class="subhead"&gt;2012 top &lt;/span&gt;&lt;/h4&gt; &lt;table id="theList"&gt; &lt;thead&gt; &lt;tr&gt; &lt;th&gt;Namn&lt;/th&gt; &lt;th&gt;has&lt;/th&gt; &lt;/tr&gt; &lt;/thead&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td&gt;Henrik&lt;/td&gt; &lt;td&gt;500k&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Erik&lt;/td&gt; &lt;td&gt;450k&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Samer&lt;/td&gt; &lt;td&gt;400K&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Jakob&lt;/td&gt; &lt;td&gt;350K&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Pontus&lt;/td&gt; &lt;td&gt;300k&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Peder&lt;/td&gt; &lt;td&gt;250K&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Chefen&lt;/td&gt; &lt;td&gt;200K&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Johan&lt;/td&gt; &lt;td&gt;150K&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Tania&lt;/td&gt; &lt;td&gt;100K&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Perica&lt;/td&gt; &lt;td&gt;54K&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;/div&gt; &lt;br /&gt; &lt;h5&gt;peps:&lt;/h5&gt; &lt;div id="Consultants"&gt; &lt;img src="/images/erik.jpg" alt="" width="70" height="70" float ="left" /&gt; &lt;img src="/images/PONY.jpg" alt="" width="70" height="70" float ="left" /&gt; &lt;img src="/images/peder.jpg" alt="" width="70" height="70" float ="left" /&gt; &lt;img src="/images/sael.jpg" alt="" width="70" height="70" float ="left" /&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;br /&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> </blockquote> <p>I have the following jquery code:</p> <pre><code>$(function () { $("#Consultants img").hover(wiggle, wiggle); function wiggle(evt) { $(this).wiggle() }; }; </code></pre> <p>When I add the code and press the "code sample" button it did not seem to work so I had to have it like this sorry.</p> <p>My problem is that I have tried several solutions online but could not make them work so after a few hours of trying I decided to ask for help.</p> <p>the jquery code might not be 100% correct but it is more of a code sample so that you can understand what I am trying to do. I hope you can fill in the rest.</p> <p>Thanks!</p>
    singulars
    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.
 

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