3a459ca986
## History We used to pass `onLoad` through directly to the underlying img so `onLoadingComplete` was introduced in order to handle the case when `placeholder="blur"` was used and `onLoad` would trigger before the placeholder was removed. We have since changed the behavior of `onLoad` so that it acts the same as `onLoadingComplete` and therefore `onLoadingComplete` is no longer needed. ## What is this PR doing? This PR marks `onLoadingComplete` as deprecated in favor of `onLoad`. In the future, we may remove `onLoadingComplete`. |
||
---|---|---|
.. | ||
components | ||
pages | ||
public | ||
styles | ||
utils | ||
.env.local.example | ||
.gitignore | ||
next-env.d.ts | ||
next.config.js | ||
package.json | ||
postcss.config.js | ||
README.md | ||
tailwind.config.js | ||
tsconfig.json |
Next.js & Cloudinary example app
This example shows how to create an image gallery site using Next.js, Cloudinary, and Tailwind.
Deploy your own
Deploy the example using Vercel or view the demo here
Check out our Next.js deployment documentation for more details.
How to use
Execute create-next-app
with npm, Yarn, or pnpm to bootstrap the example::
npx create-next-app --example with-cloudinary nextjs-image-gallery
yarn create next-app --example with-cloudinary nextjs-image-gallery
pnpm create next-app --example with-cloudinary nextjs-image-gallery
References
- Cloudinary API: https://cloudinary.com/documentation/transformation_reference