javascript - Removing just position attribute in jQuery -


i set code have traits:

  1. the navigation items-texts- hidden behind divs i'll call them navigation divs

  2. when mouse move on of pixels-navigation divs-, text behind this, slide right , left , in cases, of them move top , bottom 15 px animate() method...

  3. when mouse move div, other text reset first position next action , did with:

    $(document).on('mouseover', '.pixel#p18', function(){    $('.submenus').not("this div's text").fadeout('fast').removeattr('style'); });/* div's text example*/ 

and wrote kind of navigation texts..

now problem is:

  1. when hover mouse on 1 of navigation divs, of texts did not animated, become visible because of removeattr('style')!!! don't want that...

  2. is there alternative way can slide texts or other elements left, right, top , down optional values of move...??? example 23px left or 17px top... etc???- i'm familiyar slideup , down , toggle not sure enough code...

  3. do have better idea this---that actualy you'll have because think bad

  4. and last question why codes slow in running? animations wrote have lak times , i'm not sure problem selector or other stuff.

for need .animate has callback. like:

$('.submenus').not("this div's text").animate({opacity:0},500,'linear', function() {     $(this).removeattr('style'); }); 

this remove attribute when animation complete.


Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -