summaryrefslogtreecommitdiff
path: root/raining/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'raining/index.html')
-rw-r--r--raining/index.html10
1 files changed, 4 insertions, 6 deletions
diff --git a/raining/index.html b/raining/index.html
index 6a74122..e27da93 100644
--- a/raining/index.html
+++ b/raining/index.html
@@ -144,17 +144,15 @@
var count = $.browser.mozilla ? 50 : 100
for (var i = 0; i < count; i++) {
- var speed = randrange(40,150)
var hash = new MX.Image({
src: 'http://upload.wikimedia.org/wikipedia/commons/thumb/4/44/Cannabis_leaf_2.svg/200px-Cannabis_leaf_2.svg.png',
- scale: 0.5
+ scale: randrange(0.3,0.6)
})
hash.y = rand() * 800
hash.x = rand() * window.innerWidth/2
hash.z = rand() * 400
- hash.rotationY = rand()*360
- hash.el.style.fontSize = speed
- hash.dy = -speed - 10
+ hash.rotationY = rand()*30
+ hash.dy = randrange(-100,-30)
hash.addTo(this.parent);
hash.update()
}
@@ -166,7 +164,7 @@
hashtags.parent.el.style.opacity = 0
}
hashtags.animate = function (t) {
- scene.control.rotationY += 1
+ // scene.control.rotationY += 1
var dt = ~Math.sin(t) * 0.1
hashtags.parent.children.forEach(function(item){
item.y -= ~~(item.dy*dt)