0

I want the script, when the event is clicked, animate the div into view, only unless the div is clicked. Is the follow script in the right direction ?

$("#open").click(function() {
.animate(easeInOutBounce)
)};
3
Contributors
11
Replies
23
Views
3 Years
Discussion Span
Last Post by Siberian
0

you dont have enough code shown.

In any case, its not correct with regards to syntax. Let's say that the div you want to animate has an id = 'div1', also assuming that "#open" is another element, maybe a button or another div. Also assuming you are refering jQuery and jQueryUI in your code...

  $("#open").click(function(){
      $("#div1").animate({left:'250px'}, 2000, 'easeInOutBounce');
  });

Edited by JorgeM

0

How come JsFiddle gives me an error when I change the rule from left to right ({"error": "Please use POST request"}) ?

Edited by Siberian

0

There are several easing options. You can find them in the jQuery site/documentation. I have no idea what more bounce equates to. I used the easing in the jsfiddle that was included in your sample code.

0

The easing options I suspect are rigid, you can't adjust the curve for the easing.

0

I changed the code to the desired anchor and ID, but when I click on the anchor the bounce effect doesn't work ?

The following are all the jqueryUI libraries / scripts loading for the page;

jquery-1.11.0.min.js
jquery-ui-1.10.4.custom.js
core.js
<jquery script>.js

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.