Comments (3)
I noticed the same issue. I didn't have time to look into what was causing it, so I just hacked around it.
Add these lines to jQuery.fn.animate
just after the prop = prop || {}
line:
// Hack to work around bug where animating to the same value
// doesn't work
var position = this.position();
if (this.height() == prop.height) {
delete prop.height;
}
if (this.width() == prop.width) {
delete prop.width;
}
if (position.top == prop.top) {
delete prop.top;
}
if (position.left == prop.left) {
delete prop.left;
}
Probably not a very efficient solution, but works for now until an official fix is commited.
from jquery-animate-enhanced.
After having a short look around, I think that this is cause by the following lines (348 ff):
// fix 0 issue (transition by 0 = nothing)
if (isTranslatable && offsetPosition === 0) {
offsetPosition = 0 - meta[stashedProperty];
meta[property] = offsetPosition;
meta[stashedProperty] = 0;
}
Removing these does fix the problem, but I can't really say if it breaks some other transitioning....
from jquery-animate-enhanced.
This should be fixed in latest versions
from jquery-animate-enhanced.
Related Issues (20)
- animating right prop from negative to 0 not properly handle HOT 4
- Support for IE9+? HOT 1
- Fails to use percentage values correctly, interpreting it as pixels instead
- fadeIn() breaks initial opacity value
- jquery easing HOT 1
- animate(pos, options) doesn't seem to be supported HOT 1
- slidetoggle doesn't use css HOT 2
- [enhancement] Add missing bower.json. HOT 1
- Uncaught TypeError: Cannot read property 'tagName' of undefined HOT 1
- Safari 5.1.7 on Windows no acceleration
- box-shadow
- Trying to animate top/left without modifying the offset moves the offset to zero HOT 5
- Please use git tags for bower clients HOT 3
- Issue with Left 0 HOT 6
- :animate filter does not work as native one
- Bower install issue HOT 2
- Link Broken HOT 1
- Doesn't seem to work well with jquery.ui datepicker
- fadeIn/fadeOut/animate with opacity doesn't work on Chromium for Android
- fadeIn wipes transform translate3D on element (breaks swipebox)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jquery-animate-enhanced.