Skip to content

Cookbook

Here you can find a collection of examples that demonstrate good practices and common patterns when building with Crelte.

PageLoader

Create a page loading progress bar.

Open recipe

preloadOnMouseOver

Preload pages on mouse over to speed up navigation.

Open recipe

Pagination

Create a paginated list and scroll to the top of the list on page change.

Open recipe

Page Theme

A plugin which stores the theme to create page-specific themes (e.g. light/dark mode).

Open recipe

Recipes we will add soon

  • example of page transition
  • example of navigation
  • example of language navigation
  • example of Math.random with ssrCache
  • images with picture and srcset
  • example of a filter and storing to route