cost 227 ms
使用 ng-particles 时 Angular 中的错误 TS2322 错误“类型'字符串'不可分配给类型'”画布“” - error TS2322 in Angular with error “Type 'string' is not assignable to type '”canvas“” when using ng-particles

我正在尝试在主屏幕组件中使用particles.js。 我已经安装了“npm install ng-particles”和“npm install tsparticles”。 在服务和重新启动并与其他项目进行比较之后,我似乎无法弄清楚。 以下是我收到的错误,尽管当我 ng-serve 时它仍然在 ...

我正在尝试使用Particle js在本网站的主要英雄部分显示粒子,但是它不起作用 - I'm trying to get particles showing up on the main hero section of this site using Particle js but it doesn't work

我有一个主要的英雄部分,我想在其中使用粒子js创建效果。 我已经链接了particle.js文件和app.js文件以及我自己的主js文件,但是由于某些原因,这些粒子没有显示出来。 可能是因为图像未显示粒子? 谢谢。 particlesJS('snowfall', { "pa ...

Particles.js的多边形蒙版功能提供了Uncaught(承诺)TypeError:无法读取null的属性“ getElementsByTagName” - Particles.js's polygon mask feature is giving Uncaught (in promise) TypeError: Cannot read property 'getElementsByTagName' of null

演示: https : //rpj.bembi.org/#mask 说明: https : //github.com/Wufe/react-particles-js 我正在尝试通过vincurekf实现Polygon“遮罩”支持 我已经在公共文件夹中包括了svg polyfill路径在内的所有内 ...

如何在其他元素下面保持particle.js的交互 - How to keep the particles.js interaction while below other elements

我使用particle.js作为背景。 我已经设法使用z-index放置在后台。 我在github isseus页面上尝试了一个建议。 z-index和这个: 此位已添加到默认粒子配置中。 问题类似于: 这个问题 。 他说他解决了它,但看着他的代码链接它看起来并不相同。 ...

div无法正常工作 - div not working properly

我制作了一个粒子效果,希望将其限制为覆盖整个屏幕(而不是整个网页),以便创建视差类型的效果。 问题是我可以用像素限制高度,但是当我尝试使用height时:100vh; div class =“ main tag”以下的所有内容均不会显示。 有什么帮助吗? 这是我的html: ...


排序:
质量:
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM