summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pouring/index.html (renamed from 1/index.html)10
-rw-r--r--raining/index.html10
2 files changed, 10 insertions, 10 deletions
diff --git a/1/index.html b/pouring/index.html
index e27da93..6a74122 100644
--- a/1/index.html
+++ b/pouring/index.html
@@ -144,15 +144,17 @@
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: randrange(0.3,0.6)
+ scale: 0.5
})
hash.y = rand() * 800
hash.x = rand() * window.innerWidth/2
hash.z = rand() * 400
- hash.rotationY = rand()*30
- hash.dy = randrange(-100,-30)
+ hash.rotationY = rand()*360
+ hash.el.style.fontSize = speed
+ hash.dy = -speed - 10
hash.addTo(this.parent);
hash.update()
}
@@ -164,7 +166,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)
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)