mirror of
https://github.com/MarshalX/telegram-crawler.git
synced 2025-01-01 01:00:50 +01:00
Update content of files
This commit is contained in:
parent
ab8a1cedc5
commit
31eed5d779
2 changed files with 34 additions and 0 deletions
|
@ -0,0 +1,2 @@
|
|||
// extracted by mini-css-extract-plugin
|
||||
export default {"root":"j82N","clock":"sYj9"};
|
|
@ -0,0 +1,32 @@
|
|||
import classNames from 'classnames';
|
||||
import Lottie, { LottieRefCurrentProps } from 'lottie-react';
|
||||
import { FC, useEffect, useRef } from 'react';
|
||||
|
||||
import styles from './SandClockAnimation.module.scss';
|
||||
import animationData from './sand_clock.json';
|
||||
|
||||
const SandClockAnimation: FC<{ className?: string }> = ({ className }) => {
|
||||
const clockRef = useRef<LottieRefCurrentProps>(null);
|
||||
|
||||
const play = () => {
|
||||
clockRef.current?.goToAndPlay(0);
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
play();
|
||||
}, []);
|
||||
|
||||
return (
|
||||
<div className={classNames(styles.root, className)}>
|
||||
<Lottie
|
||||
lottieRef={clockRef}
|
||||
className={styles.clock}
|
||||
animationData={animationData}
|
||||
autoplay={false}
|
||||
loop={false}
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default SandClockAnimation;
|
Loading…
Reference in a new issue