Now imagine you this.set('y', 100) and the value tweens from 0 to 100 in 500ms linearly stepping the top attribute causing it to animate. This opens up the possibilities of tweening a value that could be used to back an element attribute/style (color, height, x, y, etc.) without ever using velocity, $.animate, css animation.
Here is a working example of a progress bar using a proof of concept of the tween helper.
I would like some feedback or ideas on how this could be expanded further to be of more use, as I’m not an expert of animation.
And to be clear, this isn’t attempting to solve anything that liquid-fire already covers. This is simply for animating attributes/style properties of HTML elements or SVGs objects.
Where is this syntax to use a helper as a value of a component attribute from? I’ve never seen this anywhere or is this part of the concept? The example does not work for me.
Interesting, I’ve never seen an announcement for such a syntax and that’s why I wounder how this could ever have worked. However, I like the syntax. I have kind of another idea in mind:
This should say: play animation ‘id-of-some-anim’ on ‘> button’ when the component is hovered.
This would allow for a more declarative syntax like in Polymer.
Problem is that I would need to provider a structured value like in your example but as far as I can see it’s only possible to provide strings and booleans and no arrays or objects or something like in your example as value.