-
Notifications
You must be signed in to change notification settings - Fork 0
/
gatsby-config.js
41 lines (40 loc) · 1.4 KB
/
gatsby-config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
module.exports = {
pathPrefix: `/gatsby-weed`,
siteMetadata: {
title: "What is a weed?",
description:
"A collaborative online project co-created by Eve Tagny and Io Makandal.",
image: "./src/assets/images/what-is-a-weed.jpg",
},
plugins: [
"gatsby-plugin-styled-components",
"gatsby-plugin-sharp",
"gatsby-transformer-sharp",
"gatsby-plugin-postcss",
"gatsby-plugin-scroll-reveal",
"gatsby-plugin-react-helmet",
{
resolve: "gatsby-source-filesystem",
options: {
name: "images",
path: "./src/assets/images/",
},
__key: "images",
},
{
resolve: `gatsby-plugin-scroll-reveal`,
options: {
threshold: 0.5, // Percentage of an element's area that needs to be visible to launch animation
once: false, // Defines if animation needs to be launched once
disable: false, // Flag for disabling animations
// Advanced Options
selector: '[data-sal]', // Selector of the elements to be animated
animateClassName: 'sal-animate', // Class name which triggers animation
disabledClassName: 'sal-disabled', // Class name which defines the disabled state
rootMargin: '0% 50%', // Corresponds to root's bounding box margin
enterEventName: 'sal:in', // Enter event name
exitEventName: 'sal:out', // Exit event name
}
},
],
};