javascript - Materialize Parallax Initialization on Meteor -
i'm using materializecss front-end framework personal website developing. used starter parallax template , works, reason parallax images not showing. believe has initialization.
snippet of 1 of parallax html:
<template name="parall"> <div class="parallax"><img src="/public/background1.jpg"> </div> </template>
js:
if (meteor.isclient) { template.parall.onrendered(function(){ $(".parallax").parallax(); }); } if (meteor.isserver) { meteor.startup(function () { // code run on server @ startup }); }
have tried rendering images css?
.parallax { background-image: url("/background1.jpg"); }
Comments
Post a Comment