Likbjorn / tag-cloud

Frontend representation for cloud of linked tags
MIT License
0 stars 0 forks source link

Do transition from foreground layer to middle layer on click on tag #30

Closed Likbjorn closed 4 years ago

Likbjorn commented 4 years ago

When user clicks on tag, he wants to go for its childs. Therefore middle layer must turn into foreground layer.

Transition logics:

  1. User clicks on some tag.
  2. Tag childs data is requested from server (up to 20 nodes).
  3. Transition occurs.
    • Foreground layer gets removed with some sort of pretty transition.
    • New data is joined with nodes of the middle layer - node coordinates do not change!
    • Middle layer gets classed as foreground layer.
    • New middle layer is created.
  4. Brand new middle and foreground layers get initialised, thus overall state of the program become identic to before-the-click state (except for represented data).