---
url: https://docs.artemsemkin.com/velum/html/settings/config-js.md
description: Change the settings every page shares in js/config.js.
---

# config.js

`js/config.js` holds the settings every page shares: how fast the animations run, when a section starts its entrance, the keys of the contact form's spam check and of the Google Map. Every page loads it, so a value changed here changes the whole site. No build is needed: save the file and reload the page.

## How to access

**HTML/js/config.js**

```js
window.velumConfig = {
  /** Animation speed: 1 is normal, 2 twice as fast, 0.5 half as fast */
  speed: 1,
  …
  googleMapsLoadMode: 'auto',
}
```

## The settings

Each setting has a comment above it in the file that says what it takes. In short:

| Setting | What it does | Default |
| --- | --- | --- |
| `speed` | Animation speed: `1` is normal, `2` twice as fast, `0.5` half as fast | `1` |
| `revealTriggerPoint` | Where a section starts its entrance as it scrolls in: `0` at the bottom edge of the screen, `1` at the top | `0.15` |
| `maskStyle` | The edge of the curtains and masks over pictures and sliders: `'curved'` or `'straight'` | `'curved'` |
| `hoverLift` | Cards and pictures lift when hovered: `true` or `false` | `true` |
| `respectReducedMotion` | Follow the visitor's "reduce motion" system setting: `true` or `false` | `true` |
| `prefetch` | Fetch a page before its link is clicked: `false`, `'hover'`, `'viewport'` (as links scroll into view) or `'tap'` | `false` |
| `timeout` | How long a page may take to arrive, in milliseconds, before the browser loads it instead | `20000` |
| `turnstileSiteKey` | The site key of Cloudflare Turnstile, the contact form's spam check: [Contact form](./contact-form) | `''` |
| `googleMapsKey` | The Google Maps key of the map in `contacts-classic.html`: [Google Map](./google-map) | `''` |
| `googleMapsLoadMode` | When the map loads: `'auto'` as it scrolls into view, or `'click'` after the visitor presses its **Load map** button | `'auto'` |

The features themselves, the cursor or the AJAX transitions, are not switched here: a feature is turned off by removing its line from a page's head, see [Turn a feature off](./turn-a-feature-off).

## Changing a setting

#### ▶️ Step 1.

Change the value after the setting's name, and keep the comma at the end of the line. Text goes in single quotes, numbers and `true` / `false` without them. Here the animations run a quarter faster and the masks have straight edges:

```js
  /** Animation speed: 1 is normal, 2 twice as fast, 0.5 half as fast */
  speed: 1.25,
  …
  /** The edge of the curtains and masks over pictures and sliders: 'curved' or 'straight' */
  maskStyle: 'straight',
```

#### ▶️ Step 2.

Save the file and reload a page.

A setting left out of the file, or given a value of the wrong kind, keeps its default. A wrong value also prints a line in the browser's console that names the setting and what it takes, such as `Velum: "speed" in js/config.js must be a number above 0. Using 1.`: see [Troubleshooting](../help/troubleshooting).

Next: [Turn a feature off](./turn-a-feature-off).
