LukasEriksen Posted August 9, 2020 Share Posted August 9, 2020 Site URL: https://www.lukaseriksen.com/ So I really want to add a confetti animation to when someone purchases a product on my site. I have scoured the interwebs and have found some code which may let me do this, but I have no idea how i can integrate it into squarespace (https://codemyui.com/falling-confetti/) could anyone help me out with this? I would be super dooper thankful! Thanks in advance! Lukas Link to comment
tuanphan Posted August 9, 2020 Share Posted August 9, 2020 Can you describe in detail? Wolfsilon 1 Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
LukasEriksen Posted August 9, 2020 Author Share Posted August 9, 2020 Doesn't matter I've figured it out already! I would however now know how i can have the script fade out over a 5 second period. What kind of code should I inject here? Link to comment
LukasEriksen Posted August 9, 2020 Author Share Posted August 9, 2020 The link is https://www.lukaseriksen.com/order-confirmed Link to comment
LukasEriksen Posted August 10, 2020 Author Share Posted August 10, 2020 @tuanphan could you help me out with this? Link to comment
tuanphan Posted August 10, 2020 Share Posted August 10, 2020 Which script? Wolfsilon 1 Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
des Posted August 12, 2020 Share Posted August 12, 2020 On 8/9/2020 at 5:22 AM, LukasEriksen said: Doesn't matter I've figured it out already! I would however now know how i can have the script fade out over a 5 second period. What kind of code should I inject here? Hey Lukas – I'm looking to do the same! Would you mind sharing how you did it? 🙏 Thanks! Link to comment
LukasEriksen Posted August 15, 2020 Author Share Posted August 15, 2020 @des add a code block to the desired page, and make sure to set it as HTML so it renders. Then paste the following code: <script src="https://www.wpromotions.eu/confetti.min.js"></script><script>confetti.start()</script> Link to comment
LukasEriksen Posted August 15, 2020 Author Share Posted August 15, 2020 @tuanphan this code: <script src="https://www.wpromotions.eu/confetti.min.js"></script><script>confetti.start()</script> kika.tuff 1 Link to comment
Solution kika.tuff Posted March 9, 2021 Solution Share Posted March 9, 2021 Hey @LukasEriksen! I figured out how to turn off the confetti effect after a certain amount of time. I set mine to turn off after 3 seconds - use the SetTimeOut function, with the command confetti.stop <script src="https://www.wpromotions.eu/confetti.min.js"></script> <script>confetti.start()</script> <script>setTimeout(function(){confetti.stop();},3000)</script> tuanphan and Jeremyn 2 Link to comment
SSong Posted October 27, 2021 Share Posted October 27, 2021 (edited) Not sure why but the announcement bar appears twice (stacked on top of one another) after I added the confetti code to the order confirmation code block. Can anyone help? Edited October 27, 2021 by SSong Link to comment
tuanphan Posted October 31, 2021 Share Posted October 31, 2021 On 10/28/2021 at 1:02 AM, SSong said: Not sure why but the announcement bar appears twice (stacked on top of one another) after I added the confetti code to the order confirmation code block. Can anyone help? Can you share link to your site? We can check easier Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
SSong Posted November 11, 2021 Share Posted November 11, 2021 On 10/30/2021 at 9:27 PM, tuanphan said: Can you share link to your site? We can check easier This is the link, not sure how you can get to the order confirmation page without placing an order though... Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment