1
0
Fork 0
mirror of https://github.com/Acamaeda/The-Modding-Tree.git synced 2025-05-11 12:31:08 +00:00

Added "instant" feature to bars

This commit is contained in:
Harley White 2021-06-07 19:25:19 -04:00
parent f67e18b4bf
commit d015d0177c
3 changed files with 8 additions and 0 deletions
js/technical

View file

@ -116,6 +116,10 @@ function constructBarStyle(layer, id) {
case DEFAULT:
style.fillDims['clip-path'] = 'inset(0% 50% 0% 0%)'
}
if (bar.instant) {
style.fillDims['transition-duration'] = '0s'
}
return style
}