diff options
Diffstat (limited to 'docs/js/shards.js')
| -rw-r--r-- | docs/js/shards.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/docs/js/shards.js b/docs/js/shards.js index 28abca0..bb2700c 100644 --- a/docs/js/shards.js +++ b/docs/js/shards.js @@ -93,7 +93,11 @@ const shards = (function(){ // el.style.transform = "translate3d(-50%, -50%, 0)" if (t === 1) { light = cielab.gradient(count) - el.style.backgroundImage = 'linear-gradient(' + dark(1) + ', ' + light(0) + ')' + if (is_mobile) { + el.style.backgroundImage = 'linear-gradient(' + dark(1) + ', ' + light(1) + ')' + } else { + el.style.backgroundImage = 'linear-gradient(' + dark(1) + ', ' + light(0) + ')' + } } el.style.backgroundColor = light(1) el.style.opacity = lerp(n, randrange(0.1, 0.4), randrange(0.2, 0.5)) |
