Sherzod Posted February 10, 2022 Share Posted February 10, 2022 3 hours ago, Артем said: Trouble in this code, because if not write him, animation created on all MainForm and outher components are not visible... I don't fully understand your case. Sorry, but as the saying goes, the right question is half the answer. I'm sorry for my misunderstanding. Quote Link to comment Share on other sites More sharing options...
artem_niko Posted December 18, 2022 Share Posted December 18, 2022 On 1/18/2022 at 11:25 AM, Sherzod said: Hello, Try this approach. 1. CustomFiles: files/particles.css files/particles.js 2. Create a json file (particles.json) in the files folder, this is the settings file, like this for example: https://github.com/VincentGarreau/particles.js/blob/master/demo/particles.json 3. UniLoginForm.Script: particlesJS.load('body', 'files/particles.json', function() { console.log('callback - particles.js config loaded'); }); 4. MainForm.Script: document.querySelector('.particles-js-canvas-el').remove(); On 1/17/2022 at 5:47 PM, Sherzod said: Can you post your example here? For some reason, a window with animation appears and immediately disappears when UniLoginForm opens. I would check with your example. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted December 18, 2022 Share Posted December 18, 2022 32 minutes ago, artem_niko said: Can you post your example here? For some reason, a window with animation appears and immediately disappears when UniLoginForm opens. I would check with your example. I just checked with a standard demo and it works. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted December 18, 2022 Share Posted December 18, 2022 1. You need to add these files to your files folder: https://raw.githubusercontent.com/VincentGarreau/particles.js/master/demo/css/style.css https://raw.githubusercontent.com/VincentGarreau/particles.js/master/particles.js https://raw.githubusercontent.com/VincentGarreau/particles.js/master/demo/particles.json 2. Include these two files in CustomFiles: 37 minutes ago, artem_niko said: 3. UniLoginForm.Script: particlesJS.load('body', 'files/particles.json', function() { console.log('callback - particles.js config loaded'); }); 4. MainForm.Script: document.querySelector('.particles-js-canvas-el').remove(); 1 Quote Link to comment Share on other sites More sharing options...
artem_niko Posted December 18, 2022 Share Posted December 18, 2022 4 minutes ago, Sherzod said: I just checked with a standard demo and it works. So... If it's worked on me, if it worked for me, then I wouldn't ask for your example to compare the code. I don't have something that would interfere with the work of this animation, I haven't found one Quote Link to comment Share on other sites More sharing options...
Sherzod Posted December 18, 2022 Share Posted December 18, 2022 Have you tested this with a standard demo? \FMSoft\Framework\uniGUI\Demos\Desktop\LoginForm Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.