-
Notifications
You must be signed in to change notification settings - Fork 63
Closed
Description
When transition 'left' or 'right' style from negative % to positive % sets wrong values. When do the same for 'top' or 'bottom' it sets she same value all the animation frames.
Code to reproduce:
<div style="position: absolute"></div>
var div = d3.select("div");
div
.style("left", "-50%")
.transition().duration(1000)
.style("left", "50%")
.tween("log", function () {
return function (t) {
console.log(div.style("left")); // will be something like -5470.53px to 523px
console.log(div.node().style.left); // will be something like -522.996% to 50%
};
});
I used https://d3js.org/d3.v4.js
for testing.
Metadata
Metadata
Assignees
Labels
No labels