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

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -