Go to homepage

Projects /

3D Drawer

A 3D panel component used to display critical content.

View Demo

How to

The 3D Drawer component is a slide-in, 3D panel used to display relevant information without losing the context of the page.

To connect the 3D panel to its trigger (e.g., button), make sure the ID value of the first one is equal to the aria-controls value of the second one.

By default, the panel enters the viewport from the right. You can modify this behavior using one of the following class modifiers (applied to the .td-drawer element):

  • .td-drawer--left
  • .td-drawer--bottom

You can listen to the opening/closing of a drawer element using the two custom events drawerIsOpen and drawerIsClose that are emitted when the drawer is open/close.

Categories

Bug report & feedback

Component Github page ↗

Project duplicated

Project created

Globals imported

There was an error while trying to export your project. Please try again or contact us.