We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Full source
Only Droplet.elm needs to change.
Droplet.elm
Add a drop-growing step before the falling step:
falls : AnimationModel -> AnimationModel falls = Animation.interrupt [ Animation.loop [ Animation.set initStyles , Animation.toWith growing grownStyles , Animation.toWith falling fallenStyles ] ]
Growing a droplet is much like draining fluid:
grownStyles : List Animation.Property grownStyles = [ Animation.height (px 20) ]
Since the droplet grows down instead of up, we only need to adjust the y value.
y
There was an error while loading. Please reload this page.