Skip to content

Commit

Permalink
feat: motoin sticky
Browse files Browse the repository at this point in the history
  • Loading branch information
wkylin committed Dec 25, 2024
1 parent 233dc2e commit 08bb1be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/stateless/HorizontalScroll/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const HorizontalScrollParallax = () => {

const Card = ({ card }) => {
return (
<div key={card.id} className="group relative h-[267px] w-[400px] overflow-hidden ">
<div key={card.id} className="group relative h-[267px] w-[400px] overflow-hidden">
<div
style={{
backgroundImage: `url(${card.url})`,
Expand Down
2 changes: 1 addition & 1 deletion src/pages/motion/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ const ParallaxVert = () => {
</motion.div>
</div>
</div>
<section ref={targetRef} className="relative h-[300vh] bg-neutral-300">
<section ref={targetRef} className="relative h-[300vh] pt-4 bg-neutral-300">
<div className="sticky top-0 flex items-center overflow-hidden">
<motion.div style={{ x: scrYProCardX }} className="flex gap-4">

Check notice on line 453 in src/pages/motion/index.jsx

View workflow job for this annotation

GitHub Actions / Qodana for JS

Unresolved JSX component

Unresolved component motion.div
<HorizontalScrollParallax />
Expand Down

0 comments on commit 08bb1be

Please sign in to comment.