Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Lazy-loading React (multi)background-image component with optional support for the blur-up effect.

License

NotificationsYou must be signed in to change notification settings

timhagn/gatsby-background-image

Speedy, optimizedbackground-images without the work!

gatsby-background-image is released under the MIT license.Current CircleCI build status of gatsby-background-image.Current npm package version.Downloads per week on npm.PRs welcome!Lerna badge.

gatsby-background-image &gatsby-background-image-es5 are React componentswhich for background-images provide, what Gatsby's owngatsby-image does forthe rest of your images and even more:
Testing explained in its own section.Art-Direction support built in.

It has all the advantages ofgatsby-image,including the "blur-up" technique or a "traced placeholder"SVG to show a preview of the image while it loads,
plus being usable as a container (no more hacks with extra wrappers)
plus being able to work withmultiple stacked background images
plus being able to style withTailwind CSS and suchlike Frameworks

All the glamour (and speed) ofgatsby-image for your Background Images!

Of course styleable withstyled-components and the like!

Preamble

Sincegatsby-background-image@0.6.0, this is a monorepo managed bylerna, so have a look at the individual READMEs of

Example Repo

gatsby-background-image has an example repository to see its similarities& differences togatsby-image side by side.
It's located at:gbitestTo use it withgatsby-background-image-es5 change the dependency there.

Contributing

Everyone is more than welcome to contribute to this little package!
Docs, Reviews, Testing, Code - whatever you want to add, just go for it : ).So have a look at ourCONTRIBUTING file and give it a go.Thanks in advance!

TODO

For anything you may think necessary tell me by opening an issue or a PR : )!

About

Lazy-loading React (multi)background-image component with optional support for the blur-up effect.

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp