Escript

Escript supports this item

Supported

7 comments found.

Butiful result but some freeze http://microgitech.fr/

Hi there. I find the best application is to target a container. I use it on my own website: http://www.essemble.co.uk Personally, I don’t want to have snow falling on the entire page/site but its a matter of choice. You can use it in whatever way best suits your own site.

Hi, a presell question: Can this script be used on a non-wordpress website, just a simple html static website? Is this also covered in the documentation (e.g. what jquery version is needed etc.) Thank you!

Hi there. It certainly can. It comes with a standalone html page demo so is very simple to set up. It comes bundled with jQuery 2.2.1 but also works with jQuery 3.0.0 (you would just need to change a single line of code to support 3.0.0). You can also link to cdnjs.cloudflare.com jQuery versions online if you prefer.

Great, thank you! I just purchased…

Sorry, that maybe a stupid question from a js newbie: How do I set the variables in the <head>? This does not work: <script> escript_snow._heightVal = 300; escript_snow.init(); </script>

Thanks for your help!

Hi, if you want to specify a height (rather than target a container which automatically works out the height/width) you can set the height attribute in the escript_snow_vars object:
var escript_snow_vars = {
    //CHANGE SNOW VARS HERE
    container:"", //id of target container,
    src:["flake1.png","flake2.png","flake3.png","flake4.png"], //flake images
    flakes:200, //number of individual flakes, recommended max 250
    height:300, //null defaults to container height, or set a number
    width:null, //null defaults to container width, or set a number
    speed:0.6, //0.3=slow 0.6=med 1=fast
    spread:200, //varies the angle of fall, a smaller number is straighter
    size:30, //flake max size in pixels, recommended 30-60
    preventOnMobilesAndTablets:false, //to prevent on mobile devices
  }
If you need a different implementation, please feel free to get in touch using the support email address.

Hi,

I have a problem with flakes images not loading on the french ( domain.com/fr/ ). It looks like the path used is not an absolute path so it tries to find images in domain.com/fr/wp-content/plugins/escript-snow/assets/

I tried to change the path in the JS file but nothing works.

Thank you for your help!

Hi, This has come up a couple of times so I’ll update the plugin so the asset path is absolute.

In the meantime you can change the asset path at the top of the script:

var escript_snow_assetPath = “http://domain.com/wp-content/plugins/escript-snow/assets/”;

Hit the Update File button to save the change. Make sure your browser is serving the updated file – you may need to clear your browser cache if you don’t see any change. Some WP sites also have a cache plugin – if yours does, clear that too to refresh.

Kind regards.

Definitely great work. Goodluck with your sales

Thanks. Happy Christmas!

how do you edit the options within wordpress?

Plugins > Escript Snow > Edit > The variables are at the top of script_snow.js If you want to target a container on your webpage, get the container id, and add this in the container var, e.g.

container:”myContainerId”

Click Save at the bottom of the page.

Screenshots of the Edit plugin page can be viewed from CodeCanyons “Screenshots” button next to the Live Preview button on the item details page.

Sorry, I think the save button is actually labelled “Update File”

by
by
by
by
by
by