Note that there are some explanatory texts on larger screens.

plurals
  1. PORemoving just position attribute in jQuery
    text
    copied!<p>I set up a code that have this traits:</p> <ol> <li><p>the navigation Items-texts- are hidden behind the some Divs I'll call them Navigation Divs</p></li> <li><p>when the mouse move over the some of pixels-navigation Divs-, the text that they are behind this, slide right and left and in some cases, some of them move top and bottom about 15 px with animate() method...</p></li> <li><p>when the mouse move to another Div, other text will be reset to first position for next action and I did this with:</p> <pre><code>$(document).on('mouseover', '.pixel#p18', function(){ $('.submenus').not("this Div's TEXT").fadeOut('fast').removeAttr('style'); });/* this Div's Text is for Example*/ </code></pre></li> </ol> <p>and I wrote this kind for all of my navigation texts..</p> <p>Now my problem is:</p> <ol> <li><p>When I hover mouse on one of navigation Divs, some of the texts that they did not animated, become to visible because of removeAttr('style')!!! But I don't want that...</p></li> <li><p>is there any alternative way that I can slide the texts or other elements to left, right, top and down with optional values of move...??? for example 23px to left or 17px to top... etc???- I'm familiyar with slideUp and Down and toggle but not sure that they are good enough for my code...</p></li> <li><p>Do you have some better Idea for this---that actualy you'll have because I think this is very bad</p></li> <li><p>and the last Question is that why my codes are very slow in running? the animations that I wrote have lak some times and I'm not Sure that the problem is my selector or other stuff.</p></li> </ol>
 

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