-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for interpolating null transform lists.
For consistency with CSS3 [1], a null "from" or "to" transform list is replaced by an identity function list whose types match those of the non-null transform list. [1]: http://www.w3.org/TR/css3-transforms/#animation
- Loading branch information
1 parent
b4d7993
commit ed131d2
Showing
5 changed files
with
74 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<!DOCTYPE html> | ||
<body> | ||
<script src="../../d3.v2.js"></script> | ||
<script> | ||
var svg = d3.select("body").append("svg") | ||
.attr("width", 960) | ||
.attr("height", 500); | ||
|
||
var g = svg.append("g") | ||
.attr("transform", "translate(100,100)") | ||
.append("g"); | ||
|
||
var rect = g.append("rect") | ||
.attr("x", -25) | ||
.attr("y", -50) | ||
.attr("width", 50) | ||
.attr("height", 100); | ||
|
||
g.transition() | ||
.duration(3000) | ||
.attr("transform", "translate(100,100)rotate(360)"); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters