timhagn / gatsby-background-image

Lazy-loading React (multi)background-image component with optional support for the blur-up effect.
MIT License
253 stars 49 forks source link

The "fixed" and "fluid" resolvers are now deprecated. #147

Closed SrJuggernaut closed 3 years ago

SrJuggernaut commented 3 years ago

Summary

It could be useful to migrate to the new gatsby model to display images

Basic example

<BackgroundImage
      Tag={`section`}
      id={`test`}
      className={className}
      image={data?.avatar?.childImageSharp?.gatsbyImageData}
    >
joernroeder commented 3 years ago

@SrJuggernaut see https://github.com/timhagn/gatsby-background-image/issues/141 for a short term fix

timhagn commented 3 years ago

Hi @SrJuggernaut & @joernroeder!

Closing this in favor of the mentioned #141 as an umbrella Issue (thanks for mentioning it, @joernroeder! : ).

Best,

Tim.