v1.6-v1.7 Particles Animation Background Prestashop

TX1000

Well-known member
Elite
XNullUser
Joined
Sep 20, 2021
Messages
24
Reaction score
285
Points
48
NullCash
1,324
Here is how to add Animated Particles to Prestashop

ParticlesShow.jpg

1. Create you desired particles here: https://vincentgarreau.com/particles.js (DEMO)
2. Click "Download current config (json) from that website.
3. Upload "particlesjs-config.json" + "particles.min.js" to your prestashop folder:
/themes/classic/assets/js/particles.json

4. Insert the the code i commented out in "layout-both-columns.tpl" file
(Or upload file to path: /themes/YOURTHEME/templates/layouts)

5. Give any element ID "particles-js"

6. Particles will now show inside that element. Im using it as a background, looks nice!

Extra tip: You can give particles-js CSS (position: fixed)

Please give a like if this was useful for you :cool:(y)
 

Attachments

  • Particles Prestashop.zip
    8.1 KB · Views: 2

d-shilko

Well-known member
Pro
Master
Diamond
Elite
Joined
Jun 10, 2021
Messages
2,495
Reaction score
1,422
Points
113
NullCash
6,147
(Or upload file to path: /themes/YOURTHEME/templates/layouts)
Hello.
it is bad practice.
I made module that implement you idea

all configuration in app.js and front.css (I'm lazy to build module config)
1636316927844.png
1636317073749.png
 

Attachments

  • idnk_particles-v1.0.0.zip
    73.4 KB · Views: 1

urernamer

Active member
XNullUser
Joined
Jan 27, 2020
Messages
488
Reaction score
41
Points
28
NullCash
11
but why? :D
 

TX1000

Well-known member
Elite
XNullUser
Joined
Sep 20, 2021
Messages
24
Reaction score
285
Points
48
NullCash
1,324
Does it works on mobile ?
Yeah it works perfectly on mobile.
Post automatically merged:

Because it looks cool and can attract users. Looks techy
Post automatically merged:

Hello.
it is bad practice.

I made module that implement you idea

all configuration in app.js and front.css (I'm lazy to build module config)

Ok interesting, but i think its very easy and convient way without editing existing prestashop files. Its just to upload 2 files, and insert a small line of code in layout-both-columns to activate :)
 

pk2res

Active member
XNullUser
Joined
Sep 23, 2020
Messages
1,308
Reaction score
5
Points
38
NullCash
5
Thank you !
 

d-shilko

Well-known member
Pro
Master
Diamond
Elite
Joined
Jun 10, 2021
Messages
2,495
Reaction score
1,422
Points
113
NullCash
6,147
Yeah it works perfectly on mobile.
Post automatically merged:


Because it looks cool and can attract users. Looks techy
Post automatically merged:



Ok interesting, but i think its very easy and convient way without editing existing prestashop files. Its just to upload 2 files, and insert a small line of code in layout-both-columns to activate :)
layout-both-columns.tpl different for different theme. Use your layout-both-columns.tpl it is way to broke the site :)
U can yourself compare layout-both-columns.tpl in few theme.
 

TX1000

Well-known member
Elite
XNullUser
Joined
Sep 20, 2021
Messages
24
Reaction score
285
Points
48
NullCash
1,324
layout-both-columns.tpl different for different theme. Use your layout-both-columns.tpl it is way to broke the site :)
U can yourself compare layout-both-columns.tpl in few theme.

Thanks for letting me know. I was not aware of this, but then they can just insert that small line of code i commented out into their own layout file :)
 

hxcode

Well-known member
Master
Diamond
Elite
Joined
Aug 16, 2020
Messages
3,302
Reaction score
364
Points
83
NullCash
17
thx for sharing
 

Sillumin

Well-known member
Pro
Master
Diamond
Elite
Joined
Jun 18, 2021
Messages
3,620
Reaction score
744
Points
113
NullCash
5,960
Thank you very much! It can be useful module!
 
Top