{#- chirp-ui: Wobble / Jello / Rubber-band / Bounce-in Micro-interaction animation utilities. Apply on hover, click, or one-shot. Usage: from "chirpui/wobble.html" import wobble, jello, rubber_band, bounce_in {% call wobble(trigger="hover") %} {% end %} {% call jello() %}
Jello on load
{% end %} {% call rubber_band(trigger="hover") %} 🎈 Stretch! {% end %} {% call bounce_in() %}
Appears with bounce
{% end %} -#} {% def wobble(trigger="load", cls="") %} {% if trigger == "hover" %} {% slot %} {% else %} {% slot %} {% end %} {% end %} {% def jello(trigger="load", cls="") %} {% if trigger == "hover" %} {% slot %} {% else %} {% slot %} {% end %} {% end %} {% def rubber_band(trigger="load", cls="") %} {% if trigger == "hover" %} {% slot %} {% else %} {% slot %} {% end %} {% end %} {% def bounce_in(cls="") %} {% slot %} {% end %}