Conditional rendering

Since Norska's scene is affected by alpine the same way the DOM is, Norska supports conditional rendering of everything that composes your scene. Just wrap any element in a <template> tag with the x-if directive.

All directives and functions will then be re-executed, which can be very costly in terms of performance. If you just want to make an element disappear, use Object3D's visible property instead.

Last updated