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:
parent
f67e18b4bf
commit
d015d0177c
3 changed files with 8 additions and 0 deletions
js/technical
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue