created animation + hoverAnimation helperFunction. Also Hero + Techstack (prev) styled and animated.

This commit is contained in:
yousifpa98
2024-12-20 01:12:49 +01:00
parent 1ff58ea7cc
commit 54df568dc6
24 changed files with 715 additions and 135 deletions

24
src/components/Hero.jsx Normal file
View File

@@ -0,0 +1,24 @@
import React, { useState } from "react";
import "../css/Hero.css";
import "animate.css";
const Hero = ({ initialAnimation, onMouseEnter, onAnimationEnd }) => {
const [animation, setAnimation] = useState(initialAnimation);
return (
<div
className={`hero container animate__animated ${animation}`}
onMouseEnter={() => onMouseEnter(setAnimation)}
onAnimationEnd={() => onAnimationEnd(setAnimation)}
>
<p>
<span>
Hi, I'm Yousif. <br />
</span>{" "}
I'm a Full-Stack Developer from Germany.
</p>
</div>
);
};
export default Hero;