我在我的 React 网站中使用了 React-tsParticles 来让它变得很酷。我希望粒子是可滚动的而不是粘性的。
您添加什么样式才能使其在我向下滚动时向上滚动?
下面是我正在使用的代码...
<Particles
options={{
background: {
},
fpsLimit: 60,
interactivity: {
events: {
resize: true,
}
},
particles: {
color: {
value: "#ffffff",
},
number: {
density: {
enable: true,
area: 800,
},
value: 80,
},
opacity: {
value: 0.5,
},
shape: {
type: "circle",
},
size: {
random: true,
value: 2,
},
},
detectRetina: true,
}}
style={{
marginTop: '10vh',
height:'89vh',
paddingTop: "2px",
}}
/>