Line 14: | Line 14: | ||
function generate_bubble(size_px, left, speed_percentage){ | function generate_bubble(size_px, left, speed_percentage){ | ||
var div = document.createElement("div"); | var div = document.createElement("div"); | ||
− | var animTime = | + | var animTime = 20*speed_percentage/100; |
div.style.width = size_px.toString() + "px"; | div.style.width = size_px.toString() + "px"; | ||
div.style.height = size_px.toString() + "px"; | div.style.height = size_px.toString() + "px"; |
Revision as of 14:40, 7 October 2021