[ Launch: Stack o' money ] 8589266 by poezn
-
-
Save poezn/8589266 to your computer and use it in GitHub Desktop.
Stack o' money
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
{"description":"Stack o' money","endpoint":"","display":"svg","public":true,"require":[],"fileconfigs":{"inlet.js":{"default":true,"vim":false,"emacs":false,"fontSize":12}},"fullscreen":false,"play":false,"loop":false,"restart":false,"autoinit":true,"pause":true,"loop_type":"pingpong","bv":false,"nclones":15,"clone_opacity":0.4,"duration":3000,"ease":"linear","dt":0.01} |
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
var num = 50, | |
h = 20, | |
w = 50; | |
var data = d3.range(num); | |
var scale = d3.scale.ordinal() | |
.domain(data) | |
.rangeBands([400, 100]); | |
var bills = g.selectAll("rect") | |
.data(data); | |
bills | |
.enter().append("rect") | |
.attr({ | |
"transform": function(d, i) { | |
var ty = -h, | |
tx = -w; | |
return "translate(" + [tx, ty] + ") skewX(20) skewY(20)" | |
}, | |
"width": 50, | |
"height": 20 | |
}) | |
.style({ | |
"fill": "#818B73", | |
"stroke-width": 1, | |
"stroke": "#464646", | |
"transform": "skew(36deg,0deg)" | |
}) | |
; | |
bills | |
.transition() | |
.delay(function(d, i) { | |
return i * 12 | |
}) | |
.attr({ | |
"transform": function(d, i) { | |
var ty = scale(i), | |
tx = w; | |
return "translate(" + [tx, ty] + ") skewX(20) skewY(0)" | |
} | |
}) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello guys, this post is very useful for you. But I will not ask this of the youth. whether they want to buy the car of their dreams. They are trying to find it on the internet. I have the best option for you. That you can visit https://www.copilotsearch.com/ to confirm all your doubts. In my opinion, this is the best online app for online car buying and shopping.