├── .eslintrc.json ├── .gitignore ├── README.md ├── components ├── AnimationControls.js ├── BasicsOfMotion.js ├── Gestures.js ├── ScrollAnimation.js └── ViewBaseAnimaions.js ├── next.config.js ├── package.json ├── pages ├── _app.js └── index.js ├── public ├── favicon.ico └── vercel.svg ├── styles └── globals.css └── yarn.lock /.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "next/core-web-vitals" 3 | } 4 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. 2 | 3 | # dependencies 4 | /node_modules 5 | /.pnp 6 | .pnp.js 7 | 8 | # testing 9 | /coverage 10 | 11 | # next.js 12 | /.next/ 13 | /out/ 14 | 15 | # production 16 | /build 17 | 18 | # misc 19 | .DS_Store 20 | *.pem 21 | 22 | # debug 23 | npm-debug.log* 24 | yarn-debug.log* 25 | yarn-error.log* 26 | .pnpm-debug.log* 27 | 28 | # local env files 29 | .env*.local 30 | 31 | # vercel 32 | .vercel 33 | 34 | # typescript 35 | *.tsbuildinfo 36 | next-env.d.ts 37 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app). 2 | 3 | ## Getting Started 4 | 5 | First, run the development server: 6 | 7 | ```bash 8 | npm run dev 9 | # or 10 | yarn dev 11 | ``` 12 | 13 | Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. 14 | 15 | You can start editing the page by modifying `pages/index.js`. The page auto-updates as you edit the file. 16 | 17 | [API routes](https://nextjs.org/docs/api-routes/introduction) can be accessed on [http://localhost:3000/api/hello](http://localhost:3000/api/hello). This endpoint can be edited in `pages/api/hello.js`. 18 | 19 | The `pages/api` directory is mapped to `/api/*`. Files in this directory are treated as [API routes](https://nextjs.org/docs/api-routes/introduction) instead of React pages. 20 | 21 | ## Learn More 22 | 23 | To learn more about Next.js, take a look at the following resources: 24 | 25 | - [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API. 26 | - [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial. 27 | 28 | You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome! 29 | 30 | ## Deploy on Vercel 31 | 32 | The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js. 33 | 34 | Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details. 35 | -------------------------------------------------------------------------------- /components/AnimationControls.js: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | import { motion, useAnimationControls } from "framer-motion"; 3 | 4 | const AnimationControls = () => { 5 | const controls = useAnimationControls(); 6 | 7 | const handleClick = () => { 8 | controls.start("flip"); 9 | }; 10 | 11 | return ( 12 |
39 | Lorem Ipsum is simply dummy text of the printing and typesetting 40 | industry. Lorem Ipsum has been the industrys standard dummy text ever 41 | since the 1500s, when an unknown printer took a galley of type and 42 | scrambled it to make a type specimen book. It has survived not only 43 | five centuries, but also the leap into electronic typesetting, 44 | remaining essentially unchanged. It was popularised in the 1960s with 45 | the release of Letraset sheets containing Lorem Ipsum passages, and 46 | more recently with desktop publishing software like Aldus PageMaker 47 | including versions of Lorem Ipsum. 48 |
49 |50 | Lorem Ipsum is simply dummy text of the printing and typesetting 51 | industry. Lorem Ipsum has been the industrys standard dummy text ever 52 | since the 1500s, when an unknown printer took a galley of type and 53 | scrambled it to make a type specimen book. It has survived not only 54 | five centuries, but also the leap into electronic typesetting, 55 | remaining essentially unchanged. It was popularised in the 1960s with 56 | the release of Letraset sheets containing Lorem Ipsum passages, and 57 | more recently with desktop publishing software like Aldus PageMaker 58 | including versions of Lorem Ipsum. 59 |
60 |61 | Lorem Ipsum is simply dummy text of the printing and typesetting 62 | industry. Lorem Ipsum has been the industrys standard dummy text ever 63 | since the 1500s, when an unknown printer took a galley of type and 64 | scrambled it to make a type specimen book. It has survived not only 65 | five centuries, but also the leap into electronic typesetting, 66 | remaining essentially unchanged. It was popularised in the 1960s with 67 | the release of Letraset sheets containing Lorem Ipsum passages, and 68 | more recently with desktop publishing software like Aldus PageMaker 69 | including versions of Lorem Ipsum. 70 |
71 |72 | Lorem Ipsum is simply dummy text of the printing and typesetting 73 | industry. Lorem Ipsum has been the industrys standard dummy text ever 74 | since the 1500s, when an unknown printer took a galley of type and 75 | scrambled it to make a type specimen book. It has survived not only 76 | five centuries, but also the leap into electronic typesetting, 77 | remaining essentially unchanged. It was popularised in the 1960s with 78 | the release of Letraset sheets containing Lorem Ipsum passages, and 79 | more recently with desktop publishing software like Aldus PageMaker 80 | including versions of Lorem Ipsum. 81 |
82 |83 | Lorem Ipsum is simply dummy text of the printing and typesetting 84 | industry. Lorem Ipsum has been the industrys standard dummy text ever 85 | since the 1500s, when an unknown printer took a galley of type and 86 | scrambled it to make a type specimen book. It has survived not only 87 | five centuries, but also the leap into electronic typesetting, 88 | remaining essentially unchanged. It was popularised in the 1960s with 89 | the release of Letraset sheets containing Lorem Ipsum passages, and 90 | more recently with desktop publishing software like Aldus PageMaker 91 | including versions of Lorem Ipsum. 92 |
93 |94 | Lorem Ipsum is simply dummy text of the printing and typesetting 95 | industry. Lorem Ipsum has been the industrys standard dummy text ever 96 | since the 1500s, when an unknown printer took a galley of type and 97 | scrambled it to make a type specimen book. It has survived not only 98 | five centuries, but also the leap into electronic typesetting, 99 | remaining essentially unchanged. It was popularised in the 1960s with 100 | the release of Letraset sheets containing Lorem Ipsum passages, and 101 | more recently with desktop publishing software like Aldus PageMaker 102 | including versions of Lorem Ipsum. 103 |
104 |105 | Lorem Ipsum is simply dummy text of the printing and typesetting 106 | industry. Lorem Ipsum has been the industrys standard dummy text ever 107 | since the 1500s, when an unknown printer took a galley of type and 108 | scrambled it to make a type specimen book. It has survived not only 109 | five centuries, but also the leap into electronic typesetting, 110 | remaining essentially unchanged. It was popularised in the 1960s with 111 | the release of Letraset sheets containing Lorem Ipsum passages, and 112 | more recently with desktop publishing software like Aldus PageMaker 113 | including versions of Lorem Ipsum. 114 |
115 |116 | Lorem Ipsum is simply dummy text of the printing and typesetting 117 | industry. Lorem Ipsum has been the industrys standard dummy text ever 118 | since the 1500s, when an unknown printer took a galley of type and 119 | scrambled it to make a type specimen book. It has survived not only 120 | five centuries, but also the leap into electronic typesetting, 121 | remaining essentially unchanged. It was popularised in the 1960s with 122 | the release of Letraset sheets containing Lorem Ipsum passages, and 123 | more recently with desktop publishing software like Aldus PageMaker 124 | including versions of Lorem Ipsum. 125 |
126 |127 | Lorem Ipsum is simply dummy text of the printing and typesetting 128 | industry. Lorem Ipsum has been the industrys standard dummy text ever 129 | since the 1500s, when an unknown printer took a galley of type and 130 | scrambled it to make a type specimen book. It has survived not only 131 | five centuries, but also the leap into electronic typesetting, 132 | remaining essentially unchanged. It was popularised in the 1960s with 133 | the release of Letraset sheets containing Lorem Ipsum passages, and 134 | more recently with desktop publishing software like Aldus PageMaker 135 | including versions of Lorem Ipsum. 136 |
137 |138 | Lorem Ipsum is simply dummy text of the printing and typesetting 139 | industry. Lorem Ipsum has been the industrys standard dummy text ever 140 | since the 1500s, when an unknown printer took a galley of type and 141 | scrambled it to make a type specimen book. It has survived not only 142 | five centuries, but also the leap into electronic typesetting, 143 | remaining essentially unchanged. It was popularised in the 1960s with 144 | the release of Letraset sheets containing Lorem Ipsum passages, and 145 | more recently with desktop publishing software like Aldus PageMaker 146 | including versions of Lorem Ipsum. 147 |
148 |149 | Lorem Ipsum is simply dummy text of the printing and typesetting 150 | industry. Lorem Ipsum has been the industrys standard dummy text ever 151 | since the 1500s, when an unknown printer took a galley of type and 152 | scrambled it to make a type specimen book. It has survived not only 153 | five centuries, but also the leap into electronic typesetting, 154 | remaining essentially unchanged. It was popularised in the 1960s with 155 | the release of Letraset sheets containing Lorem Ipsum passages, and 156 | more recently with desktop publishing software like Aldus PageMaker 157 | including versions of Lorem Ipsum. 158 |
159 |160 | Lorem Ipsum is simply dummy text of the printing and typesetting 161 | industry. Lorem Ipsum has been the industrys standard dummy text ever 162 | since the 1500s, when an unknown printer took a galley of type and 163 | scrambled it to make a type specimen book. It has survived not only 164 | five centuries, but also the leap into electronic typesetting, 165 | remaining essentially unchanged. It was popularised in the 1960s with 166 | the release of Letraset sheets containing Lorem Ipsum passages, and 167 | more recently with desktop publishing software like Aldus PageMaker 168 | including versions of Lorem Ipsum. 169 |
170 |