Skip to main content

LoadingSpinner

LoadingSpinner adds a simple loading bar while loading your image / video.

Example

import View360, { LoadingSpinner } from "@egjs/view360";
// If you're not using the bundled CSS (view360.css or pano-viewer.css)
import "@egjs/view360/css/loading-spinner.min.css";

const viewer = new View360("#id_of_el", {
src: "URL_TO_SRC",
autoInit: false
});

viewer.loadPlugins(new LoadingSpinner());

// When "Load" button is clicked
viewer.init();

For detailed options, check the items below LoadingSpinner on the left sidebar.

Constants

LoadingSpinner는 provides constants that can be used when setting options.

DEFAULT_CLASS

Default class names used by LoadingSpinner

import { LoadingSpinner } from "@egjs/view360";

LoadingSpinner.DEFAULT_CLASS