Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update readme with next/image example #57

Merged
merged 4 commits into from
Sep 14, 2021

Conversation

styfle
Copy link
Contributor

@styfle styfle commented Sep 14, 2021

This example will avoid layout shift because the width/height remain the same – only the src is swapped.

Additionally we add a transparent gif placeholder until we can determine if the theme is dark or light.

README.md Outdated Show resolved Hide resolved
styfle and others added 2 commits September 14, 2021 17:14
Co-authored-by: Paco <34928425+pacocoursey@users.noreply.github.com>
@pacocoursey pacocoursey merged commit 30ae932 into pacocoursey:master Sep 14, 2021
@styfle styfle deleted the patch-1 branch September 14, 2021 21:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants