Zenmo / Holon-webapp

MIT License
2 stars 2 forks source link

Content managers can add animations to storylines #173

Closed mattijsstam closed 1 year ago

mattijsstam commented 1 year ago

Implements a feature of the total infographic design https://github.com/ZEnMo/Holon-webapp/issues/182

Description

In the new design the animation consists of tiles that can be turned on or of by interactive settings. In order to prepare for future changes we shoul make the tiles as flexible as possible and the animation should render based on the following input:

For example

{
  settings: [
    {
      id: 1,
      name: "Tegels"
      animation_tag: "tiles",
      value: ["bedrijventerrein", "windmolenpark"]
    },
    {
      id: 2,
      name: "solarpanels",
      animation_tag: "solarpanels-roof",
      label: "Aandeel zon op dak",
      value: 2
    },
    {
      id: 2,
      name: "transport electrification",
      animation_tag: "transport-electrification",
      label: "Aandeel electrificatie transport",
      value: 4
    }
  ]
}

Based on these settings the correct tiles can be shown an each tile can respond to the setting changes of the relevant animation_tag

Image

design

To discuss

Acceptance criteria

Erikvv commented 1 year ago

Tegels gaan we niet meer doen.