Run an animation with less frames using jquery

  • جي كويري

Run an animation with less frames using jquery

الأجوبة

HTML Code :

<!DOCTYPE html>
<html>
<head>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
  <style>
  div {
    width: 150px;
    height:85px;
    margin: 5px;
    float: left;
    background: #254BF4;
  }
  </style>
  <meta charset="utf-8">
  <title>Run an animation with less frames</title>
</head>
<body>
<p><input type="button" value="Run"></p>
<div></div>
</body>
</html>

JavaScript Code :

jQuery.fx.interval = 200;
$( "input" ).click(function() {
  $( "div" ).toggle(3000);
});
هل كان المحتوى مفيد؟

معلومات ذات صلة

تبحث عن مدرس اونلاين؟

محتاج مساعدة باختيار المدرس الافضل؟ تواصل مع فريقنا الان لمساعدتك بتأمين افضل مدرس
ماهو التخصص الذي تبحث عنه؟
اكتب هنا...