We have worked with the default configurations of impress.js up to this point. Generally, these configurations are capable enough to handle any kind of presentation or application created with the library. In certain advanced scenarios, the user might need to alter these configuration options to achieve custom functionality. Hence we are going to cover the default configurations in this section.
Default configurations of the impress library are located in the impress.js
file using the defaults
variable. The following code shows the default configuration options and their respective values:
var defaults = { width: 1024, height: 768, maxScale: 1, minScale: 0, perspective: 1000, transitionDuration: 1000 };
Let's get an idea about each of these options in detail: