This is the source code for the this interactive scrollytelling article published by the ONS as part of the Census 2021 first results.
You are welcome to reuse this code under the terms of the Open Government License, but please remove any ONS branding from any derivative projects that you create.
This project was made with Svelte Kit. To use the code, either download or clone this repo, and then run the following commands in the local folder on your computer.
Note that you will need to have Node.js installed.
Install the dependencies...
npm install...then start a local dev server:
npm run dev...then, finally, navigate to localhost:5000 in your browser. You should see the app running. You can edit the code within the src folder to make changes. The src/routes/[...code]/index.svelte file is the best place to start.