You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//In this case lets say that we are going to use the SpinningSquare in a footer, so we use anchor: "bottom"
217
-
//Anyways, I recommend to test each of the possible anchor values to see how it behaves.
218
-
anchor:"bottom",
219
-
},
220
217
};
221
218
222
219
//Just an example of using an external object
@@ -329,7 +326,7 @@ So, let's say we are using a component of 1000px, middle as anchor and we set du
329
326
330
327
The animation won't start until the center of the screen (middle anchor) is at the center of the component (500px). So the total distance from delay to the end of the component is 500px. We also setted a duration at half, so the animation should last as half of the total distance, at 250pxof the end of the component the animation will finish.
331
328
332
-
### Recommendations
329
+
### Options Recommendations
333
330
334
331
If you struggle trying to understand that. I mean it could be hard to understand with all those numbers and calculations.
335
332
@@ -354,7 +351,7 @@ I recommend to experiment with those values. Just go and mess around with it, ma
354
351
options, // You can pass it like this because it has the same name as the property
355
352
});
356
353
357
-
//It's call height because I'm using this hook to change the height of a component on scroll
354
+
//It's called height because I'm using this hook to change the height of a component on scroll
358
355
//In this case, the height will vary from 10 to 100
359
356
const height = useLinearValue({
360
357
startValue: 10,
@@ -438,7 +435,7 @@ This will render a rectangle that has a height of 400px, a width of 100px and a
438
435
```
439
436
440
437
441
-
## Recomendations
438
+
## Circle/Rectangle Recommendations
442
439
443
440
To make responsive the components, I recommend to use rem or em values, so that way you can modify the font-size of the root or parent component using media queries and therefore modify the sizes of the components.
0 commit comments