Skip to content

Commit

Permalink
fix: change anim position
Browse files Browse the repository at this point in the history
  • Loading branch information
sragabor authored and norbert-berenyi committed Feb 8, 2024
1 parent 1aceba0 commit ba284be
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/anim/trans-anim-2.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/components/sections/two-column-h2.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ const TwoColumnH2 = ({
<section className={`two-column-h2 ${direction}`}>
<div className={"row align-items-center"}>

<div className={`col col-12 col-lg-6 anim-col ${direction === "rtl" ? "order-lg-2" : "order-lg-1"}`}>
<div className={`col col-12 col-lg-6 anim-col ${animVersion === 2 && 'px-2'} ${direction === "rtl" ? "order-lg-2" : "order-lg-1"}`}>
{anim && <Lottie lottieRef={lottieRef} animationData={anim} loop={false} autoplay={false}
renderer={"canvas"} style={{ width: animVersion === 2 ? 762 : 700, height: animVersion ? 490 : 450}}
renderer={"canvas"} style={{width: animVersion === 2 ? 680 : 700, height: animVersion ? 450 : 450}}
/>}
{!anim && <Image alt={title} filename={image} />}
</div>
Expand Down

0 comments on commit ba284be

Please sign in to comment.