# Example: effects

This sample enables effects to expand/Collapse and sets the `autoCollapse` option.

Auto collapse - Use effects - Skin:

- item1 with key and tooltip
- item2
- Folder with some children
  - Sub-item 3.1
    - Sub-item 3.1.1
    - Sub-item 3.1.2
  - Sub-item 3.2
    - Sub-item 3.2.1
    - Sub-item 3.2.2
- Document with some children (expanded on init)
  - Sub-item 4.1 (active and focus on init)
    - Sub-item 4.1.1
    - Sub-item 4.1.2
  - Sub-item 4.2
    - Sub-item 4.2.1
    - Sub-item 4.2.2

Active node: -

jquery.dynatree.js project home Link to this page Example Browser View source code