Rect environment, this is a piece of my code. I cant make then to work. What am I doing wrong?
progressAnimation.current = new mojs.Html({
el: progressRef.current,
width: {
[progressRef.current.style.width || 0]: position * 100 + '%'
},
duration: 1000
}).then({
scale: {
'1': '1.3'
},
opacity: {
'1': '0'
},
duration: 1000
}).play();