Skip to content

Commit

Permalink
style: 💄 adjust transformX value on Animation component
Browse files Browse the repository at this point in the history
  • Loading branch information
andersonfpcorrea committed Nov 12, 2022
1 parent b6b340f commit 89a690f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/Animate/Animate.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ function Animate({ children, id, className = "" }) {
<AnimatePresence exitBeforeEnter>
<motion.div
key={id}
initial={{ x: 10, opacity: 0 }}
initial={{ x: 0, opacity: 0 }}
animate={{ y: 0, opacity: 1 }}
exit={{ y: -10, opacity: 0 }}
transition={{ duration: 0.2 }}
Expand Down
3 changes: 1 addition & 2 deletions src/components/VideoPlayer/VideoPlayer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ function VideoPlayer({ video }) {
return (
<div className="w-full">
<iframe
className="w-full h-[50vw] min-[959px]:h-[40vw] min-[1150px]:w-[52vw] min-[1150px]:h-[25vw] xl:w-[55vw] xl:h-[30vw]"
style={{ borderRadius: "1rem", margin: "-10px" }}
className="w-full h-[50vw] min-[959px]:h-[40vw] min-[1150px]:w-[52vw] min-[1150px]:h-[25vw] xl:w-[55vw] xl:h-[30vw] rounded-2xl"
src={`https://www.youtube.com/embed/${videoID}`}
title="YouTube video player"
frameBorder="0"
Expand Down

0 comments on commit 89a690f

Please sign in to comment.