wufe / react-particles-js

Particles.js for React
https://rpj.bembi.dev/
MIT License
1.15k stars 106 forks source link

Images not working nextjs #79

Closed AWR14 closed 5 years ago

AWR14 commented 5 years ago

I'm using next js and have the following. getting now errors but the images arent loading. any working examples of this?

const Canvas = props => {
  return (
    <Background>
    <Particles params={{
      particles: {
        shape: {
            type: 'images',
            images: [
                {src: '/static/001-interface.png', height: 100, width: 100},
                {src: '/static/001-interface.png', height: 200, width: 200},
            ]
        }
    }
    }} />
  </Background>
  )
}
AWR14 commented 5 years ago

Any help on this? I've tried the polygon example code in my next js project, having the svg local in the static folder, it doesn't load.

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.