X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=unfold%2Fstatic%2Fjs%2Fspin.presets.js;h=33be023b0b6be035d1584b028ae910b57991f912;hb=65c555f623a08d7b84d86efff99436633d1e3436;hp=46115b178ad16bf3869d746d2af318b43bac219b;hpb=b319a0f95b9137aeb86317f0c1ee417d9c58c0fa;p=unfold.git diff --git a/unfold/static/js/spin.presets.js b/unfold/static/js/spin.presets.js index 46115b17..33be023b 100644 --- a/unfold/static/js/spin.presets.js +++ b/unfold/static/js/spin.presets.js @@ -1,4 +1,4 @@ -var spin_presets={ +function spin_presets() { return { lines: 13, // The number of lines to draw length: 7, // The length of each line width: 4, // The line thickness @@ -6,7 +6,7 @@ var spin_presets={ corners: 1, // Corner roundness (0..1) rotate: 0, // The rotation offset color: '#f00', // #rgb or #rrggbb - speed: 0.3, // Rounds per second + speed: 0.7, // Rounds per second trail: 60, // Afterglow percentage shadow: false, // Whether to render a shadow hwaccel: true, // Whether to use hardware acceleration @@ -14,4 +14,4 @@ var spin_presets={ zIndex: 2e9, // The z-index (defaults to 2000000000) top: 'auto', // Top position relative to parent in px left: 'auto' // Left position relative to parent in px -}; +}}