Hi everyone,
X-Mas is comming! Here is a little something to make your Theme X-Masly. It’s going to add falling snowflages to your background.
Go to Menu composer -> Header area -> Global -> add a HTML “Theme block” -> insert this code:
<script data-capture="0" type="text/javascript" defer src="//cdn.pi-case-designer.com/catalog/view/javascript/snowflake.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$.fn.snow({
minSize: 5, // Minimumsize of the snowflake (px)
maxSize: 25, // Maximum size of the snowflake (px)
newOn: 350, // Frequency they fall (ms)
flakeColor: '#FFF' // Colour of the snowflake
});
});
</script>
I hope you enjoy it as much as I do
Ps.: If your Background is white you might want to change this line to:
flakeColor: '#99FFF' // Colour of the snowflake
|
|
Hi,
Thanks for submitting this little script. We’ve modified your code a bit so it can work with all optimizations options enabled.
BR,
ThemeBurn team
|
|