mirror of
https://github.com/Spythere/spythere-portfolio.git
synced 2026-05-03 05:28:16 +00:00
chore: updated projects & about sections
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
import { ReactNode, useRef } from 'react';
|
||||
import { StyledAnimatedText } from './styles/AnimatedText.styled';
|
||||
|
||||
interface IProps {
|
||||
children: ReactNode;
|
||||
}
|
||||
|
||||
export default function AnimatedText(props: IProps) {
|
||||
const test = useRef<HTMLElement>(null);
|
||||
|
||||
// useEffect(() => {
|
||||
// console.log(test.current?.textContent);
|
||||
// }, [test]);
|
||||
|
||||
return (
|
||||
<StyledAnimatedText>
|
||||
<span ref={test}>{props.children}</span>
|
||||
<span className="cursor"></span>
|
||||
</StyledAnimatedText>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user