diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-11-25 23:31:09 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-11-25 23:31:09 +0100 |
| commit | cad57f530bf293399c35b58e660470101d1f188e (patch) | |
| tree | c02a405a1a2179e366ccda980915d6babfce5c94 | |
| parent | b13b624073771d3012a7f03194db68668754b3b7 (diff) | |
site
| -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)) |
