-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
eba5e79
commit 3c1ff2e
Showing
8 changed files
with
81 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
import GridWrapper from '@/components/GridWrapper' | ||
import Link from '@/components/Link' | ||
import WorkTile from '@/components/WorkTile' | ||
import scrollPreview1 from './images/scroll-1.mp4' | ||
import scrollImage from './images/scroll-1.png' | ||
import scrollPreview2 from './images/scroll-2.mp4' | ||
import scrollPreview3 from './images/scroll-3.mp4' | ||
import scrollMain from './images/scroll-main.mp4' | ||
import mockWindow from './images/window.png' | ||
|
||
const Links = () => { | ||
return ( | ||
<> | ||
<Link href="https://scrolldriven.dev">scrolldriven.dev</Link> | ||
<Link href="https://showcase.scrolldriven.dev">showcase.scrolldriven.dev</Link> | ||
<Link href="https://github.com/adamplesnik/tailwindcss-scroll-driven-animations"> | ||
@adamplesnik/tailwindcss-scroll-driven-animations | ||
</Link> | ||
</> | ||
) | ||
} | ||
|
||
const WorkScrollDriven = () => { | ||
return ( | ||
<WorkTile | ||
title="Scroll-driven animations plugin for Tailwind CSS" | ||
links={<Links />} | ||
text="Explore the possibilities of CSS scroll-driven animations. Powered by my own Tailwind CSS plugin, no animation JS libs used. Some browsers might have been harmed during the process." | ||
top={ | ||
<div className="bg-slate-200 p-4 sm:p-6 md:p-8 dark:bg-slate-700"> | ||
<div className="relative mx-auto max-w-[990px]"> | ||
<img src={mockWindow} alt="" /> | ||
<div className="absolute bottom-[5.6%] left-[2.6%] right-[2.6%] top-[4.8%] overflow-hidden rounded-b sm:rounded-b-md md:rounded-b-xl"> | ||
<video loop autoPlay playsInline muted className="-mt-px"> | ||
<source src={scrollMain} type="video/mp4"></source> | ||
</video> | ||
</div> | ||
</div> | ||
</div> | ||
} | ||
badges={['React', 'Tailwind CSS']} | ||
> | ||
<GridWrapper> | ||
<div className="mb-4 flex aspect-square items-center bg-slate-200 p-4 sm:p-6 md:p-8 dark:bg-slate-700"> | ||
<div className="relative"> | ||
<img src={mockWindow} alt="" /> | ||
<div className="absolute bottom-[6%] left-[2.7%] right-[2.6%] top-[4.8%] overflow-hidden rounded-b-xl"> | ||
<img src={scrollImage} /> | ||
</div> | ||
</div> | ||
</div> | ||
<div className="flex aspect-square items-center bg-slate-200 p-4 sm:p-6 md:p-8 dark:bg-slate-700"> | ||
<div className="overflow-hidden"> | ||
<video loop autoPlay playsInline muted className="-mt-px"> | ||
<source src={scrollPreview3} type="video/mp4"></source> | ||
</video> | ||
</div> | ||
</div> | ||
|
||
<div className="overflow-hidden"> | ||
<video loop autoPlay playsInline muted className="-mt-px"> | ||
<source src={scrollPreview1} type="video/mp4"></source> | ||
</video> | ||
</div> | ||
|
||
<div className="overflow-hidden"> | ||
<video loop autoPlay playsInline muted className="-mt-px"> | ||
<source src={scrollPreview2} type="video/mp4"></source> | ||
</video> | ||
</div> | ||
</GridWrapper> | ||
</WorkTile> | ||
) | ||
} | ||
|
||
export default WorkScrollDriven |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters