Because Marko Widgets doesn't maintain a separate virtual DOM it will reset manual changes to element attributes on rerender() . It should be possible to specify attributes for Marko to ignore. This is mostly the case with class and style attributes where external animation / tweening engines such as Velocity.js or GSAP are often used whereas we still wish to rely on setState() while still maintaining element styles as set manually outside Marko.
w-preserve-attrs="style,class"
Because Marko Widgets doesn't maintain a separate virtual DOM it will reset manual changes to element attributes on
rerender()
. It should be possible to specify attributes for Marko to ignore. This is mostly the case withclass
andstyle
attributes where external animation / tweening engines such as Velocity.js or GSAP are often used whereas we still wish to rely onsetState()
while still maintaining element styles as set manually outside Marko.