Counter

Animated number that counts up when visible.
---
block:
  _bookshop_name: elements/counter
  number: 100
  prefix: $
  suffix: +
  options:
    size: 6xl
    weight: bold
    align: center
    case: null
    decoration: null
    duration: 500
    starting_value: 50
    margin:
      top: null
      bottom: null
---
{% bookshop "{{block._bookshop_name}}" bind: block %}

Properties

numbernumber

The number to count to.

prefixstring

Text to go before the number

suffixnumber

Text to go after the number

optionsobject

Configuration options for the counter