Wednesday, October 28, 2009

Jquery Shake Effect

yesterday i try with the Jquery Shake Effects , it was really nice i was trying this Effect on login page . Ones the user enter wrong information (userid or password ) the box get shake , so its really eye catching and looking also great , there are so many ways , you can integrate the Shake effect on your application, like showing perticular box every time when user get scroll down or scroll up , at a time of loding image, loading page, and so on.

here i have some collection of that effects , hope u like it

1. Jquery Shake


$("div").click(function () {
$(this).effect("shake", { times:3 }, 300); //specify the effect with how much time u want to shake Effects
});



2.Right side Shake


#shaker { position:fixed; top:10px; right:10px; width:299px; height:253px; display:none; }

define your shake box according to your location.

3.Buzzing Login form

<script type="text/javascript" src="jquery-1.3.2.min.js" > </script>
<script type="text/javascript" src="vibrate.js" > </script>


add this js on your application . view Source


4. Shaking Menu Options
with this coole Effects
1. OthersFade()
2. OthersJump()
3. OthersBlink()
4. OthersRollUp()
5. OthersRollDown()
6. OthersVibrate()

5.Flash ShakingEffects

6.basiceffects



hope you like it .
if you know more plz add on comments

20 comments:

  1. send me u r mail id i will send u that .

    ReplyDelete
  2. Get more jquery scripts or learn Jquery Tutorial with simple examples on hscripts.com.

    ReplyDelete
  3. The simple one if you try it,

    $("div").click(function () {
    $(this).effect("shake", { times:3 }, 300);
    });

    only need to add the effect method on your post
    just try adding the time interval and the time till what you want to make the shaking

    ReplyDelete
  4. Hi Kiran,

    Can yu pls send the code....praveensn0088@gmail.com...thanks in advance

    ReplyDelete
    Replies
    1. Hi praveen ,

      i have send you sample application with shake effect, you can even look at the below demo there are multiple effects are given on it,
      http://jqueryui.com/demos/show/default.html

      you will find Blind,Bounce,Pulsate,Scale,Size,Shake,Slide,Fold Effects.
      let me know if you have any query or any help on it.

      Delete
  5. good example, kiran can you put some demo so or example so we can undustand better.
    thank you again,
    markwilson

    ReplyDelete
    Replies
    1. Thank you mark, hope it will help you :)
      thx again for posting reply.

      Delete
  6. can we add the setInterval method and add the parameter to it
    like this way setInterval(periodical, 5000);.
    does this set the time interval and autoshake?

    thank you :)

    ReplyDelete
    Replies
    1. if we want to stop the shake effect, is there any method or function available or do we need to code accordingly?

      Delete
    2. Hi Michael,

      Thanks for writing, if you want to stop the shake effect you can simaple add this line on the script

      to stop you need to send the two argements jumpToEnd:true and clearQueue:true into stop().

      Delete
    3. yeap, it works for me. Thank You.

      Is there any oher way where i can find the entire section or div will continue in shake effect and whenver user move the mouse it will stop and redirect to specific page.

      Delete
  7. cool, your examples works for me.

    i really appriciate your work, thank you again.

    ReplyDelete
  8. good example, thank you for sharing.

    ReplyDelete
  9. Kiran, i have one question here. can i able to make shake effect such a way that where i can have effect after that i can change the place of that effect anywhere on page.

    does this possible?

    ReplyDelete
    Replies
    1. http://jqueryshaker.wordpress.com/

      something similar and easy to implement

      Delete
    2. HI Rohan,

      yes you can do that, only you need to first try to get the page location using java script and try calling your effect on that location.

      just be on update with this post , i will upload your code very soon or do send me your mail id, so i will send you the mock example.

      Delete
  10. GOOD ARTICLE, IT SAVE MY TIME :)

    ReplyDelete
  11. Is their a way to stop the shaker after page load or after the page processing finish

    ReplyDelete
  12. thank you @Jiten.

    @David- yes you can do that, after page load in ready function put this line and assign the interval to zero(0)

    $(this).effect("shake", { times:3 }, 0);

    ReplyDelete