Skip to content

Commit

Permalink
Merge pull request #371 from celestiaorg/feature/lotti-anim-fix
Browse files Browse the repository at this point in the history
Feature/lotti anim fix
  • Loading branch information
norbert-berenyi committed Feb 14, 2024
2 parents 3dbbf6b + a07869f commit 4f457d2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/sections/two-column-h2.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const TwoColumnH2 = ({
<div className={"text"}>
<h2 className={"with-decor mt-4 mt-lg-0"}>{title}</h2>
<div className='paragraph' dangerouslySetInnerHTML={{ __html: text }} />
<div className={'position-absolute'} style={{marginTop:'25vh'}} ref={myRef}/>
<div className={'lottie-anchor'} ref={myRef}/>
<div className={"flex mt-4"}>
<Link to={buttonPrimaryUrl} className={`button button-simple me-4 ${buttonPrimaryClass}`}>
{buttonPrimaryTitle}
Expand Down
10 changes: 10 additions & 0 deletions src/scss/sections/two-column-h2-section.scss
Original file line number Diff line number Diff line change
Expand Up @@ -94,3 +94,13 @@
}
}
}


.lottie-anchor{
position:absolute;
margin-top:25vh;

@media (max-width: 1380px) {
margin-top:0;
}
}

0 comments on commit 4f457d2

Please sign in to comment.