Comments (4)
换句话说,new JParticles.特效名 无效
from jparticles.
手动下载特效到本地,然后引入把问题解决了,但是问题来了,我加载了我的svg图片,图片被裁剪了,只显示了很小的一部分区域,显示出现了问题
from jparticles.
换句话说,new JParticles.特效名 无效
上面的代码写错了,不是 new Particle.WaveLoading
,是 new JParticles.WaveLoading
,或者像下面这样:
import { WaveLoading } from "jparticles";
new WaveLoading('#mainLoad')
from jparticles.
手动下载特效到本地,然后引入把问题解决了,但是问题来了,我加载了我的svg图片,图片被裁剪了,只显示了很小的一部分区域,显示出现了问题
是有这个问题,如果 svg 图片没有设置宽高属性,源码里通过 new Image 对象拿不到正确的宽高,因为 svg 是矢量图,所以可以给 svg 图片设置一个很大的宽高,然后就可以解决这个问题了
from jparticles.
Related Issues (9)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jparticles.