jquery-animate

KineticJS animation with JQuery

断了今生、忘了曾经 提交于 2019-12-10 14:54:51
问题 I am new in KineticJS and I am stacked. I want to use a simple animation with opacity but I found out that there is not so "simple" as it seems. I read the doc about animations with KineticJS (you won't say simple about this tutorial). What I want to know Is there a simple method to animate things with KineticJS like JQuery or JCanvaScript has? for example this.animate({ opacity:0, x: 50 }, 500); something like this? If there is not can we use KineticJS with JQuery to make animations simple?

Jquery animate() and google chrome issues

拜拜、爱过 提交于 2019-12-10 14:47:52
问题 i'm having a problem with jquery and animate() in google Chrome. I have a box which is initially hidden and positioned on the right outside the screen. When a box is clicked the hidden box becomes visible and animate from right to the center, it stops and blink, then and then it starts moving again to the left side of the screen and disapper. This thing works on Explorer and Firefox but not on Chrome. This is the link: http://test.gianlucaugolini.it/4545.html And this is the code: function

Disable animations when testing AngularJS app with protractor

泪湿孤枕 提交于 2019-12-10 13:30:02
问题 I have some code in my AngularJS app which displays/hides some divs using animations like: $(el).fadeOut() . How can I disable the animations when testing with protractor using: http://api.jquery.com/jQuery.fx.off ? Can I somehow run that small piece o code in the browser directly from protractor? 回答1: Found it: var ptor = protractor.getInstance(); ptor.get("http://localhost:9000/"); ptor.driver.executeScript("$.fx.off = true;"); 来源: https://stackoverflow.com/questions/18852713/disable

Parent div drop-shadow bug when children is animated with jQuery in Internet Explorer 9

你离开我真会死。 提交于 2019-12-10 13:05:48
问题 When a parent div has a css drop-shadow applied, and its children is animated with jQuery so that the parent div changes height, strange lines below the parent div appear when viewing the page in IE9. Here is an example: http://jsfiddle.net/vPqxb/11/ and a screenshot: For the one who just want to see the code; here is the HTML: <div class="parent"> <div class="longer"> </div> </div> , the CSS: div.parent { background: #ddd; box-shadow: 1px 1px 2px 1px #c9c7c9; width: 80%; } div div {

Why are my jQuery animations choppy in webkit-based browsers?

ぐ巨炮叔叔 提交于 2019-12-10 12:32:12
问题 I'm working with a very simple animation: sliding a line of images to the left: $('#button').click( function() { $('div#gallery').animate({scrollLeft:'+=800px'}, 1000); } ); (It's supposed to be an image gallery; I hide the overflow to show only one image at a time.) Anyway, despite trying various easing parameters, even at slow speeds the animation was very choppy in Chrome and Safari, but always smooth in Internet Explorer and Firefox. (Most issues raised online are about IE or Firefox

Aframe (how to?) Animate entity or entities with both simultaneous and sequential scaling/rotations/positions

牧云@^-^@ 提交于 2019-12-10 12:20:49
问题 This is the menu: How do I animate an entity, so that upon an event like a click, it does simultaneous scaling, rotation, positioning, and sequential scaling, rotation, positioning. <a-curve id="track1"> <a-curve-point position="4 2 -3"></a-curve-point> <a-curve-point position="6 5 -2"></a-curve-point> <a-curve-point scale="10 -3 -1"></a-curve-point> </a-curve> <a-cylinder position="5 0.75 -3" radius="0.5" height="1.5" color="#FFC65D" shadow> <a-animation alongpath="curve: #track1" begin=

How create a chained delayed animation sequence in jQuery?

折月煮酒 提交于 2019-12-10 10:32:20
问题 Consider having the following objects: <div id="d1"><span>This is div1</span></div> <div id="d2"><span>This is div2</span></div> <div id="d3"><span>This is div3</span></div> <div id="d4"><span>This is div4</span></div> <div id="clickhere"><span>Start animation</span></div> And consider that I would like to apply, using jQuery, an animation on each of the four element listed before. What I have now Consider the following code applied in the head section if the page: function start_anim() { $("

Stop CSS rotate animation smoothly on unknown keyframe

ぐ巨炮叔叔 提交于 2019-12-10 10:25:06
问题 I have an image that swings using CSS rotate animation. I would like to stop it smoothly (and put it back to its original position when clicking on another element but without getting the jumpy stop feeling). It seems that the expected behaviour only happens on the first iteration of the animation but not on the upcoming ones (this is when clicking on the "slow" button during the first 2 seconds) Here is a sample code https://jsfiddle.net/pbarrientos/5v3xwak6/ I have already tried adding

How can I make a function wait until an animation completes?

谁都会走 提交于 2019-12-10 10:12:47
问题 I have used JQuery for a small animation work: a table #photos contains 9 photos and I would like to increase the width and height using the animate function on mouseover. But while the animation is running if the user moves to mouse to another photo it automatically triggers the next animation, so it's totally confused. What should I do? My code is: $(function(){ $("#photos tr td img").mouseover(function(){ $(this).animate({"width":"1000px","height":"512px"},2000) }); $("#photos tr td img")

jquery animate from object center

那年仲夏 提交于 2019-12-10 09:42:40
问题 I am trying to create a product viewer similar to the one at the bottom of this page http://www.logitech.com/en-gb/. As you can see the product animates from the center rather than top left which I think is Jquery's default. So what I am doing is trying animate the width and height and then also the offset to make it look like it animates from the center. My code looks like this: <style> body { background: black; } .box { background: #fff url('pic.jpg') no-repeat 0 0; width: 200px; height: