mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
20 lines
358 B
TypeScript
20 lines
358 B
TypeScript
import * as React from "react";
|
|
import { ScrollRotate } from "react-scroll-rotate";
|
|
|
|
const elements = [
|
|
<ScrollRotate>
|
|
<span>content</span>
|
|
</ScrollRotate>,
|
|
<ScrollRotate
|
|
target="target"
|
|
throttle={0.25}
|
|
from={0}
|
|
to={360}
|
|
method="prec"
|
|
loops={1}
|
|
animationDuration={0.25}
|
|
>
|
|
<span>content</span>
|
|
</ScrollRotate>
|
|
];
|