attrEffect
attrEffect
applies the output of motion values to the attributes of one or more elements.
When these motion values update, the element will re-render once per frame during the render step of the frameloop.
attrEffect
will automatically handle casing for aria
and data
attributes, converting camel case to kebab case.
It will also dynamically set attributes via their JavaScript setter, if available, for improved type-safety and performance.