Note that there are some explanatory texts on larger screens.

plurals
  1. POjQuery Messy Animation
    primarykey
    data
    text
    <p>So I have this animation here <a href="http://kevingilbertportfolio.com/help/index.html" rel="nofollow">http://kevingilbertportfolio.com/help/index.html</a> and I am trying to get it to move smoothly. It is supposed to whenever you mouse over it come out and when u bring the mouse cursor out it goes back in.. as you can see it is very very very messy.</p> <p>HTML + CSS + jQuery</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;meta http-equiv="content-type" content="text/html; charset=UTF-8"&gt; &lt;title&gt; - jsFiddle demo&lt;/title&gt; &lt;script type='text/javascript' src='http://code.jquery.com/jquery-1.8.2.js'&gt;&lt;/script&gt; &lt;link rel="stylesheet" type="text/css" href="/css/normalize.css"&gt; &lt;link rel="stylesheet" type="text/css" href="/css/result-light.css"&gt; &lt;style type='text/css'&gt; @charset "utf-8"; /* CSS Document */ * { margin:0; padding:0; } body { background-color:#636363; } .facebook-sw { margin-top:120px; float:right; margin-right:-300px; position: relative; } .fb-icon { float:left; margin-right:14px; } .fb-like-box { float:left; } .wrapper {overflow: hidden;} &lt;/style&gt; &lt;script type='text/javascript'&gt;//&lt;![CDATA[ $(document).ready(function() { $('.facebook-sw').hover(function() { $('.facebook-sw').animate({ left: '-=300' }, 900, function() { // Animation complete. }); }); }); $(document).ready(function() { $('.facebook-sw').mouseout(function() { $('.facebook-sw').animate({ left: '+=300' }, 900, function() { // Animation complete. }); }); }); //]]&gt; &lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;div class="wrapper"&gt; &lt;div class="facebook-sw"&gt; &lt;img class="fb-icon" src="image/fb-icon.PNG" width="110" height="113" alt=""&gt; &lt;img class="fb-like-box" src="image/example.JPG" height="544" width="292" alt=""&gt; &lt;/div&gt; &lt;/div&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p><strong>HUGE thanks in advance</strong></p>
    singulars
    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