This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "data": { | |
| "__schema": { | |
| "queryType": { | |
| "name": "Query" | |
| }, | |
| "mutationType": { | |
| "name": "Mutation" | |
| }, | |
| "subscriptionType": null, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React, { useEffect, useRef } from "react"; | |
| import { animated, useSpring } from "react-spring"; | |
| // You can use this `calc1 and calc2` method to increase the impact | |
| // of the effect by playing around with the values and units. | |
| const calc1 = (o) => `translateY(${o * 0.1}px)`; | |
| const calc2 = (o) => `translateY(-${o * 0.01}px)`; | |
| const ParallaxBanner = () => { | |
| const ref = useRef(); |