mirror of
https://github.com/yusufipk/natours-react.git
synced 2026-09-12 03:26:10 +00:00
added animation to header button
This commit is contained in:
@@ -2,7 +2,14 @@ import "./button.css";
|
||||
|
||||
function Button(props) {
|
||||
return (
|
||||
<a href="#" className="btn btn-white">
|
||||
<a
|
||||
href="#"
|
||||
className={
|
||||
props.animationName === "move-in-bottom"
|
||||
? "btn btn-white move-in-bottom"
|
||||
: "btn btn-white"
|
||||
}
|
||||
>
|
||||
{props.text}
|
||||
</a>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user