This PR adds a new element, m-attr-lerp that allows smoothly lerping between element attribute values similarly to m-attr-anim, but without having to specify document-time based timings and explicit start and end attributes.
The "attr" attribute also allows specifying multiple comma-separated attributes or all to apply to all attributes at once (which is also the default if attr is not provided).
What kind of changes does your PR introduce? (check at least one)
[x] Feature
Does your PR introduce a breaking change? (check one)
[x] No
Does your PR fulfill the following requirements?
[x] All tests are passing
[x] The title references the corresponding issue # (if relevant)
Resolves #165
This PR adds a new element,
m-attr-lerp
that allows smoothly lerping between element attribute values similarly tom-attr-anim
, but without having to specify document-time based timings and explicitstart
andend
attributes.Example usage:
The "attr" attribute also allows specifying multiple comma-separated attributes or
all
to apply to all attributes at once (which is also the default ifattr
is not provided).What kind of changes does your PR introduce? (check at least one)
Does your PR introduce a breaking change? (check one)
Does your PR fulfill the following requirements?