{% translate "Shared settings" %}
{% translate "These settings apply to the custom preview and to every preset." %}
{% translate "View the integration code" %}
{% translate "Presets and code samples" %}
{% translate "These animations use the shared settings above. The title and subtitle come from each animation. Open βView the codeβ under an example to copy its setup into your own page." %}
{% translate "View the integration code" %}
{% translate "View the integration code" %}
{% translate "View the integration code" %}
{% translate "View the integration code" %}
{% translate "View the integration code" %}
{% translate "View the integration code" %}
{% translate "View the integration code" %}
{% translate "View the integration code" %}
{% translate "Integration code" %}
{% translate "Add this to your application: a container, the CSS file, the animation library, then the mount call in your application code. The counter is driven by the returned API." %}
<link rel="stylesheet" href="animations.css">
<div id="postal-frame"></div>
<script src="animation.js"></script>
<script>
const postal = PymissiveAnimation.mountCard("postal-frame", "postal", {
title: "Postal mail",
subtitle: "Sending in progress",
icon: "π¬",
count: 3,
speed: 1,
caption: "Processing the letters",
total: 100,
remaining: 100,
counter: true,
counterBackground: false
});
postal.counter.reset(100);
postal.counter.setRemaining(90);
</script>
{% translate "To mix several send types or pick another receiver, pass a list and the receiver option:" %} PymissiveAnimation.mountCard("frame-id", ["sms", "postal"], { receiver: "globe" }). {% translate "IDs and mount calls stay in your own HTML or JavaScript." %}