m3hdi

خلاصه نویسی دستور زیر در جی کوئری

1 پست در این موضوع

می خواستم ببینم خلاصه این دستور به چه صورت هستش ؟

jQuery(document).ready(function(){

   // box1
   jQuery(".responsive-design").on( "mouseover",function(){
       jQuery(".web-design").css({
           "filter":"alpha(opacity=10)",
           "opacity":"0.1",
           "-webkit-transition":" all 0.5s ease",
           "-moz-transition":"all 0.5s ease",
           "-o-transition":"all 0.5s ease",
           "transition":"all 0.5s ease"
       });
       jQuery(".seo").css({
           "filter":"alpha(opacity=10)",
           "opacity":"0.1",
           "-webkit-transition":" all 0.5s ease",
           "-moz-transition":"all 0.5s ease",
           "-o-transition":"all 0.5s ease",
           "transition":"all 0.5s ease"
       });

   });
   jQuery(".responsive-design").on( "mouseout",function(){
       jQuery(".web-design").css({
           "filter":"alpha(opacity=100)",
           "opacity":"1",
           "-webkit-transition":" all 0.5s ease",
           "-moz-transition":"all 0.5s ease",
           "-o-transition":"all 0.5s ease",
           "transition":"all 0.5s ease"
       });
       jQuery(".seo").css({
           "filter":"alpha(opacity=1)",
           "opacity":"100",
           "-webkit-transition":" all 0.5s ease",
           "-moz-transition":"all 0.5s ease",
           "-o-transition":"all 0.5s ease",
           "transition":"all 0.5s ease"
       });
   });

   //Box2
   jQuery(".web-design").on( "mouseover",function(){
       jQuery(".responsive-design").css({
           "filter":"alpha(opacity=10)",
           "opacity":"0.1",
           "-webkit-transition":" all 0.5s ease",
           "-moz-transition":"all 0.5s ease",
           "-o-transition":"all 0.5s ease",
           "transition":"all 0.5s ease"
       });
       jQuery(".seo").css({
           "filter":"alpha(opacity=10)",
           "opacity":"0.1",
           "-webkit-transition":" all 0.5s ease",
           "-moz-transition":"all 0.5s ease",
           "-o-transition":"all 0.5s ease",
           "transition":"all 0.5s ease"
       });

   });
   jQuery(".web-design").on( "mouseout",function(){
       jQuery(".responsive-design").css({
           "filter":"alpha(opacity=100)",
           "opacity":"1",
           "-webkit-transition":" all 0.5s ease",
           "-moz-transition":"all 0.5s ease",
           "-o-transition":"all 0.5s ease",
           "transition":"all 0.5s ease"
       });
       jQuery(".seo").css({
           "filter":"alpha(opacity=1)",
           "opacity":"100",
           "-webkit-transition":" all 0.5s ease",
           "-moz-transition":"all 0.5s ease",
           "-o-transition":"all 0.5s ease",
           "transition":"all 0.5s ease"
       });
   });

   //Box3
   jQuery(".seo").on( "mouseover",function(){
       jQuery(".responsive-design").css({
           "filter":"alpha(opacity=10)",
           "opacity":"0.1",
           "-webkit-transition":" all 0.5s ease",
           "-moz-transition":"all 0.5s ease",
           "-o-transition":"all 0.5s ease",
           "transition":"all 0.5s ease"
       });
       jQuery(".web-design").css({
           "filter":"alpha(opacity=10)",
           "opacity":"0.1",
           "-webkit-transition":" all 0.5s ease",
           "-moz-transition":"all 0.5s ease",
           "-o-transition":"all 0.5s ease",
           "transition":"all 0.5s ease"
       });

   });
   jQuery(".seo").on( "mouseout",function(){
       jQuery(".responsive-design").css({
           "filter":"alpha(opacity=100)",
           "opacity":"1",
           "-webkit-transition":" all 0.5s ease",
           "-moz-transition":"all 0.5s ease",
           "-o-transition":"all 0.5s ease",
           "transition":"all 0.5s ease"
       });
       jQuery(".web-design").css({
           "filter":"alpha(opacity=1)",
           "opacity":"100",
           "-webkit-transition":" all 0.5s ease",
           "-moz-transition":"all 0.5s ease",
           "-o-transition":"all 0.5s ease",
           "transition":"all 0.5s ease"
       });
   });

});

به زبان فارسی بخوام این دستور شرح بدم : من سه تا باکس دارم که می خوام وقتی موس بروی هر باکسی رفتش دو تای دیگه شفافیتشون به ده درصد برسه و وقتی موس از روی باکس خارج شدش شفافیت هر سه باکس به حالت اول برگرده .

نیاز به دو دستور سی.اس.اس دارم یکی : مربوط به Opacity و دیگری دستور transition برای وقفه در تغییر حالت .

Share this post


Link to post
Share on other sites
کدگذاری فایلهای php با ioncube لپ تاپ استوک قالب جوملا قالب وردپرس قالب رایگان وردپرس قالب رایگان جوملا هاست نامحدود هاست جوملا هاست لاراول هاست وردپرس هاست ارزان هاست ربات تلگرام خرید دامنه آموزش ساخت ربات تلگرام با php لپ تاپ استوک در اندیشه لپ تاپ استوک در شهرقدس لپ تاپ استوک در فردیس لپ تاپ استوک در شهریار

برای ارسال نظر یک حساب کاربری ایجاد کنید یا وارد حساب خود شوید

برای اینکه بتوانید نظر ارسال کنید نیاز دارید که کاربر سایت شوید

ایجاد یک حساب کاربری

برای حساب کاربری جدید در انجمن ما ثبت نام کنید. عضویت خیلی ساده است !


ثبت نام یک حساب کاربری جدید

ورود به حساب کاربری

دارای حساب کاربری هستید؟ از اینجا وارد شوید


ورود به حساب کاربری