Initializing
The demo pages already include the following code. These steps are only necessary if you are building a page from scratch. Remove these references if you are not using this plugin to improve page load times.
-
Load the initializer code in
index.js
- Declare the following import statement in
js/mrare/index.js
. This ensures that the initializer code is included in thetheme.js
bundle.import './fade-page';
- Declare the following import statement in
-
Load the required CSS in
components.scss
- Declare the following import statement in
scss/custom/components.scss
:@import "components/optional/page-transitions";
- Declare the following import statement in