How to create raining effect to your Shopify store

Hura Product Showcase Builder

In this post I will show you how to create a raining effect using JavaScript to your Shopify store. We will also see how it works.

DEMO

Follow below mentioned steps to make raining effect on your Shopify store.

Log in to your Shopify store. From your Shopify admin, go to Online Store > Themes. Click Actions > Edit code.

Step 1: Create a new Javascript file – rain-effect.js

In the Assets directory, click Add a new asset. In popup appear: Go to Create a blank file tab, give your asset the name rain-effect, choose .js and click Add asset.

In the online code editor, paste the content from the below text.

Step 2: Embed the new Javascript file into theme

In the Layouts folder, locate and click on your theme.liquid file to open it in the online code editor. In the online code editor, scroll down a bit until you see the closing tag. Right before the closing tag, paste the code.

Note: You must also load jQuery before loading this script.

DEMO

Hura Theme Blocks

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *